Rocky_Mountain_Vending/.pnpm-store/v10/files/2e/58e4ab31220425cbc653f646a9ff81aa0448c7d47ee44545e0dbbbe03f5a4bc7dbf814af4fd2134f03a6e1cd9352c20b75bd0ed92a74d59effba70ed98d34a
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

17 lines
No EOL
574 B
Text

import { Observable } from '../Observable';
import { innerFrom } from './innerFrom';
import { EMPTY } from './empty';
export function using(resourceFactory, observableFactory) {
return new Observable((subscriber) => {
const resource = resourceFactory();
const result = observableFactory(resource);
const source = result ? innerFrom(result) : EMPTY;
source.subscribe(subscriber);
return () => {
if (resource) {
resource.unsubscribe();
}
};
});
}
//# sourceMappingURL=using.js.map