There are many breaking changes in this release:
- The Router class no longer has many of the methods it had.
- Most of these methods have been moved to the new routerContext, which is served via the useRouter() hook
- React state is being used for all state management, which should set the stage for better transition/suspense support
- Router Context and route context has been renamed to Router Meta and Route Meta
- Loaders are gone. You can still force a route to wait for an async function via `beforeLoad`, which is serial or `load` which is parallel.
- There's a lot of other changes, but I'm too tired to think straight.
Breaking Changes:
- `search` and `hash` are no longer directly available in route loaders
- The route `key` option has been removed
New:
- Added a new optional route option `loaderContext`. It's a function that receives `search` and `hash` and expects you to return any serializable data from them that you require in your loader. This stable-serialized value is used to uniquely identify route matches coming from this route configuration and acts as a dependency tracker for when loaders should rerun, etc.
* docs: fixed variable name error (#715)
used the wrong example in customStringifier example
* Fix(router-cli): Fixes on Windows and Improvements (#717)
* (fix) Fixed backslash on windows
(fix) Sanitized routePaths, import and interface keys
(enhanched) made the parent search recursive
(question) how layouts need to be generated?
* (feat) Added WIP example for file routing
* (fix) add debug json in ignored
* (fix) Added return type to 'hasParentRoute'
(fix) Removed example, moved to another branch
---------
Co-authored-by: Koja sig. Dennis <DKOJA@ceia-spa.com>
* fix: types for useNavigate and useMatchRoute (#723)
* document passing Link isActive to children (#725)
---------
Co-authored-by: Frank Tran <ftransd@gmail.com>
Co-authored-by: Denny09310 <50493437+Denny09310@users.noreply.github.com>
Co-authored-by: Koja sig. Dennis <DKOJA@ceia-spa.com>
Co-authored-by: Blake Gentry <bgentry@users.noreply.github.com>