Skip to content

feat(jarl-atoms): 927 — enumRouteAtom binds a path segment from a fixed set of values - #111

Open
randomdevpete wants to merge 2 commits into
task-789-converge-core-atom-namingfrom
task-927-oneof-route-atom-primitive
Open

feat(jarl-atoms): 927 — enumRouteAtom binds a path segment from a fixed set of values#111
randomdevpete wants to merge 2 commits into
task-789-converge-core-atom-namingfrom
task-927-oneof-route-atom-primitive

Conversation

@randomdevpete

Copy link
Copy Markdown
Owner

Adds enumRouteAtom, a route primitive that binds one path segment to a value drawn from a fixed set, typed as the union of that set rather than as string. Adopts it on the docs site's /docs and /api routes.

The ticket's second "Done when" — simplifying ticket 678's demo — is not doable on this base, because SwitchRoutingApp.tsx lives only on origin/task-678-very-simple-logic-switch-routing-demo, a separate stack off master. Whichever lands second collapses that demo's paramRouteAtom + transformRouteAtom + isSwitchRoutingPage into one enumRouteAtom call — a five-line deletion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant