Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve routing to support passing arguments #146

Open
rolznz opened this issue Dec 7, 2023 · 0 comments
Open

Improve routing to support passing arguments #146

rolznz opened this issue Dec 7, 2023 · 0 comments

Comments

@rolznz
Copy link
Collaborator

rolznz commented Dec 7, 2023

Wait until there is a valid usecase for this. One possible way:

In src/components/routes.ts each route could take params:
(params) => <some-component invoice={params.invoice}/>

In src/components/bc-router-outlet.ts:
r = routes[this._route](this._routeParams); // this._routeParams comes from the store

In src/state/store.ts:
pushRoute: (route: Route, params: FixMe) => {

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

No branches or pull requests

1 participant