vanjs-router Upgraded to 2.0.4 #349
iuroc
started this conversation in
Show and tell
Replies: 1 comment
-
|
It's not clear if this router handles urls, so for example would the uri /about load the About Route? For now, I want to use a router because I want the back button in the browser to work. Does this router handle that? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
vanjs-router v2.0: Key Improvements and Framework Overview
Key Improvements from v1 to v2
Delayed Page Loading:
Optimized Execution of
onFirstandonLoad:onFirstandonLoadhas been enhanced usingasync/await. This ensures thatonFirstcompletes beforeonLoadis executed, providing better control over asynchronous workflows.Simplified API and Method Body:
thiscontext handling. The framework now exports onlynowHash,now,Handler,Route, andgoto, withRoutebeing essential. This streamlines usage and reduces complexity.Focus on Simplicity:
Usage Example
Beta Was this translation helpful? Give feedback.
All reactions