Replies: 3 comments 8 replies
-
Don't know why but |
Beta Was this translation helpful? Give feedback.
2 replies
-
The prototype router is working now! https://github.com/Banyc/yew-router-2. The repo contains two examples. One is for the basic routing. The other is to explain how the nested routers work. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks for the working on the prototype. I looked around the code and got a couple of comments:
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
yew-router
now only support absolute path matching, which forces pages of different domains to aware their absolute paths in the project.React router defines each route with a path segment, so that however the upper routes change, the sub-routes don't need to change anything.
I tried implementing the core logic of path segment matching, which wraps
route-recognizer
. It not yet becomes components in yew, but I feel like it is implementable theoretically. I'll try make a prototype yew router lib that supports path segment matching. The code gen part atderive
is a bit challenging for me so I'll just skip it.References:
Beta Was this translation helpful? Give feedback.
All reactions