Skip to content

Effect ​

Two packages bring Effect to UI-Router:

PackageBuilds onWhat it is
ui-router-effect@uirouter/core, effectrouteRef, a SubscriptionRef of the router's current state, with no Lit
lit-ui-router-effectui-router-effect, lit-ui-routerLit 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.
  • Both stand on the Altitude Atlas as bricks in sheet 2's model in the round, each sized by its authored files and seated on what it peers.