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
`navigateTo` requires a page to exist in the `pages` slice in order
to successfully navigate. You would have to create a page in the store
before calling `navigateTo`. The most common scenario is creating a copy
of the current page with new params before navigating. e.g, facet filters.
Its common enough that we add the ability to optimistically navigate. With
these changes, you can provide a `search` hash that will get merged with
the existing url query params. The page state is either copied over for
history `push`s or moved to a new pageKey for history `replace`s before
navigating.
This also encourages folks to use the browser url to reflect application
state, just like EmberJS instead of `useState`. For example:
resolves#135
```
const {
navigateTo,
pageKey,
search
} = useContext(NavigationContext)
```
0 commit comments