vanjs-router Upgraded to 2.0.4 #349
iuroc
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
vanjs-router v2.0: Key Improvements and Framework Overview
Key Improvements from v1 to v2
Delayed Page Loading:
Optimized Execution of
onFirst
andonLoad
:onFirst
andonLoad
has been enhanced usingasync/await
. This ensures thatonFirst
completes beforeonLoad
is executed, providing better control over asynchronous workflows.Simplified API and Method Body:
this
context handling. The framework now exports onlynowHash
,now
,Handler
,Route
, andgoto
, withRoute
being essential. This streamlines usage and reduces complexity.Focus on Simplicity:
Usage Example
Beta Was this translation helpful? Give feedback.
All reactions