Can Inertia Link "reload" @routes directive? #915
-
Hey everyone.
Also on my front-end at layout I have locale switcher:
Also on front-end I use
Only If I press F5 (full page reloading), then If instead on Inertia links I use simple If anybody needs, my custom
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@maxonfjvipon Inertia is more an SPA which means there are typically no full page reloads and not all parts of page will always get re-rendered. I assume that your |
Beta Was this translation helpful? Give feedback.
@maxonfjvipon Inertia is more an SPA which means there are typically no full page reloads and not all parts of page will always get re-rendered. I assume that your
route()
helper is only rendered on page load. You will need a more dynamic approach, e.g. passing the routes via shared props, in the respective Inertia responses or fetching the routes from an endpoint after language change.