Data loaded in layout doesn't load on initial page load but works if you refresh the page #9402
Unanswered
dietler
asked this question in
Help/Questions
Replies: 1 comment
-
You will hardly get usedul responses wirhiut sharing the code. |
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
-
I'm trying to load data and store it into a Pinia store in the script of a layout, and then use it on the page. When I route.push() to the page it doesn't seem to "fire off" the layout's script as the Pinia store is empty. But if I refresh the page it loads just fine and everything works. Is there something I need to do to make sure a layout's script runs when it loads from a route.push()?
Beta Was this translation helpful? Give feedback.
All reactions