https://github.com/ctron/yew-router
A fork of yew-router
https://github.com/ctron/yew-router
Last synced: 8 months ago
JSON representation
A fork of yew-router
- Host: GitHub
- URL: https://github.com/ctron/yew-router
- Owner: ctron
- License: apache-2.0
- Created: 2021-12-14T13:38:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-07T07:20:37.000Z (about 4 years ago)
- Last Synced: 2025-02-23T11:17:23.047Z (over 1 year ago)
- Language: Rust
- Size: 64.5 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Yew Router (fork)
This is fork of version 0.15 of the `yew-router`.
## Motivation
The main motivation behind the fork is the lack of nested router support in the 0.16 release. This fork ports the 0.15
router from Yew 0.18 to Yew 0.19 and renames it to `yew-router-nested`.
Also see: https://github.com/yewstack/yew/issues/1853
## Using
You can use this by patching the `yew-router` dependency in your `Cargo.toml`:
~~~toml
[dependencies]
yew-router-nested = "0.16"
~~~
If you want to keep `yew_router` as the module name, you can use:
~~~toml
[dependencies]
yew-router = { version = "0.16", package="yew-router-nested" }
~~~
## Migration
While this should mostly be a drop-in replacement for the 0.15 router, there may be a few steps required to migrate:
* The name of the crate is `yew-router-nested`.
* When using `Switch` in `Properties`, it may be necessary to also make the types implementing
switch `PartialEq` and `Clone`. This is required due to the new requirement of Properties to implement `PartialEq`.