You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a beginner, it is really confusing how to construct links in the DOM. The example in the README is incomplete without a working example of links. I have tried using createHref after doing a lot of searching, but it is not working and I am getting an error like this:
TypeError: Cannot read property '_namespace' of undefined
at RouterSource.createHref (VM986 bundle.js:3568)
at HomeComponent (VM986 bundle.js:3432)
at MapOp.f (VM986 bundle.js:3562)
at _try (VM986 bundle.js:17778)
Examples exist in the tests, like here. createHref only works if you update the router source for each component like so component({...sources, router: router.path('/about')}). PRs for improving documentation are welcome.
I am looking for something like this https://github.com/nakaji-dayo/cyclic-router/tree/master/example
But that is using an older version of cyclic-router I guess, the example need not to be as exhaustive like the above, just a simple one to explain how to use createHref from the main page or the components.
As a beginner, it is really confusing how to construct links in the DOM. The example in the README is incomplete without a working example of links. I have tried using
createHref
after doing a lot of searching, but it is not working and I am getting an error like this:My example source code:
The text was updated successfully, but these errors were encountered: