We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$active in routes defined from a 2nd level of nested Router onwards is always undefined, resulting in Route's slot / component never rendering.
$active
Router
undefined
Route
<p> <a href="/">Home</a> | <a href="/nest-1">nest-1</a> | <a href="/nest-1/nest-2">nest-2</a> | <a href="/nest-1/nest-2/nest-3">nest-3</a> </p> <Router> <Route path="/"> <div>home</div> </Route> <Route path="/nest-1/*"> <div>nest-1</div> <Router> <Route path="/">nest-1 index</Route> <Route path="/nest-2/*"> <div>nest-2</div> <Router> <!-- never renders --> <Route path="/">nest-2 index</Route> <!-- never renders --> <Route path="/nest-3/*"> <div>nest-3</div> </Route> </Router> </Route> </Router> </Route> </Router>
(I'd post a codesandbox link, but Codesandbox has an issue with the mjs module exported by navaid)
navaid
In the above example the Route containing nest-2 index will always have $active === undefined.
nest-2 index
$active === undefined
This seems odd since each Router gets its own instance of navaid, and the first nested Router works without issue.
Am I misunderstanding how to define routes, or am I not understanding how navaid works?
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
$active
in routes defined from a 2nd level of nestedRouter
onwards is alwaysundefined
, resulting inRoute
's slot / component never rendering.(I'd post a codesandbox link, but Codesandbox has an issue with the mjs module exported by
navaid
)In the above example the
Route
containingnest-2 index
will always have$active === undefined
.This seems odd since each
Router
gets its own instance of navaid, and the first nestedRouter
works without issue.Am I misunderstanding how to define routes, or am I not understanding how navaid works?
The text was updated successfully, but these errors were encountered: