bitcoin-connect icon indicating copy to clipboard operation
bitcoin-connect copied to clipboard

Improve routing to support passing arguments

Open rolznz opened this issue 1 year ago • 0 comments

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) => {

rolznz avatar Dec 07 '23 08:12 rolznz