Ideal place for fetching initial data
As per the title where would be the best place for fetching initial data that will be stored in pinia?
Currently i am handling it in an auth middleware as well as in the default layout.
1 Reply
“As early as possible” can be a plugin, can be the app.vue, can be a middleware. It depends a lot what you want to/can show in the meantime!