UNPKG

@furystack/shades

Version:

A lightweight UI framework for FuryStack with JSX support

15 lines 633 B
import { defineService } from '@furystack/inject'; import { ObservableValue } from '@furystack/utils'; export const RouteMatchService = defineService({ name: '@furystack/shades/RouteMatchService', lifetime: 'singleton', factory: ({ onDispose }) => { const currentMatchChain = new ObservableValue([]); onDispose(() => { // eslint-disable-next-line furystack/prefer-using-wrapper -- Disposal is deferred to the injector's onDispose hook. currentMatchChain[Symbol.dispose](); }); return { currentMatchChain }; }, }); //# sourceMappingURL=route-match-service.js.map