How to share state across rotes? #2566
-
|
What is the ideomatic way to pass parameter from the list view to the detail view for first render. The goal is to show some data till the full detail object is loadet. I wanna pass the list object to display upfront. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
You can put the data on Pinia. |
Beta Was this translation helpful? Give feedback.
-
|
thank you for your examples. |
Beta Was this translation helpful? Give feedback.
you can pass history state but note it comes with limitations and that it can be accessed directly through
history.state(in some situations it's disconnected from the current route #2106):router.push({ state: {} }).