beforeNavigate
event
#1573
martynaskre
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Developers who are familiar with
Vue
router are aware ofbeforeEnter
event, which is useful for a lot of types scenarios, such as lazy loading or modifying the page that will be swapped.Currently, I am attempting to integrate lazy loading for translations, with the locale being controlled by a
Laravel
backend. The most straightforward method would involve intercepting the page's locale before the frontend components are switched. Unfortunately, there is currently no available option to accomplish this.All things considered, this would be nice addition to framework, enabling developers to incorporate different techniques.
If this proposal matches the development direction of Inertia, I would like to contribute a PR for this feature!
Beta Was this translation helpful? Give feedback.
All reactions