Skip to content

lit-ui-router-effect / RefRuntime

Interface: RefRuntime ​

Defined in: lit-ui-router-effect/src/ref-controller.ts:19

The slice of a runtime the controllers need. Effect.runFork / Effect.runSync on the default runtime unless one is given; a ManagedRuntime<R> satisfies it because the controllers' effects require nothing from R. It runs the controllers' own fibers; it does not provide services to a selector, which stays a plain function over the values.

Properties ​

PropertyModifierTypeDescriptionDefined in
runForkreadonly(effect, options?) => Fiber<unknown, unknown>starts an effect on a fiber the controller interrupts on disconnect, on options.scheduler when givenlit-ui-router-effect/src/ref-controller.ts:24
runSyncreadonly<A>(effect) => Aruns a synchronous effect, used to read a ref's current valuelit-ui-router-effect/src/ref-controller.ts:29