Effect
Two packages bring Effect to UI-Router:
| Package | Builds on | What it is |
|---|---|---|
| ui-router-effect | @uirouter/core, effect | routeRef, a SubscriptionRef of the router's current state, with no Lit |
| lit-ui-router-effect | ui-router-effect, lit-ui-router | Lit controllers that follow the route's ref and any other SubscriptionRef |
ui-router-effect is for Effect programs that follow the route without Lit; lit-ui-router-effect is for Lit components. Each package page has its own install snippet.
Both support Effect 3 and 4; Effect 3 and 4 covers the one difference the bindings' callers see.
In use
- Hello Galaxy (Effect) runs the galaxy tutorial on
lit-ui-router-effect. - The Effect sample app keeps its client state in
SubscriptionRefs through the same bindings.