Closed zevaverbach closed 3 years ago
Sorry, here's the console output:
Uncaught (in promise) TypeError: Cannot read property 'pattern' of undefined
at Object.match (bundle.js:828)
at bundle.js:828
at Object.subscribe (bundle.js:772)
at i (bundle.js:828)
at instance (bundle.js:960)
at init (bundle.js:583)
at new Route (bundle.js:1015)
at Array.create_if_block$8 (bundle.js:28253)
at create_fragment$i (bundle.js:28989)
at init (bundle.js:598)
Try to wrap all routes in <Route>...</Route>
.
Hope I will fix it soon.
For question about navigation - is it solution: https://github.com/AlexxNB/tinro/issues/27 ?
@AlexxNB thanks for the quick response -- in fact, the solution in #27 does resolve this.
Thanks for making this beautifully simple router -- I'm excited to start using it.
I'm probably misunderstanding something, but I expected to be able to navigate directly to a URL in the address bar if there exists a
<Route />
for it. However, with the following code there are no reachable pages at all:I've gathered one piece of the puzzle, which is that if I add a
<nav>
with an anchor link to, say,/login
, I can click that and the component which is associated with that route renders as expected. Is there any way to make routing work even when not clicking on a link?