0👍
You can remove the timeout function. It is meant in the example just to simulate a delayed response from an api, but not necessary in real life. You would likely want to return your store data as a computed prop, to properly watch the response from the api if relying on a Pinia store.
- [Vuejs]-How to create Vue component with exportable function?
- [Vuejs]-Image URL not showing in strapi(nested data)
Source:stackexchange.com