use always of pinia #2936
Unanswered
sajadhzj
asked this question in
Help and Questions
Replies: 2 comments
-
Unless your data is shared between multiple components with no parent/child relation, I suggest to store API data directly in your components. This is more standard and it makes code easier to read and to test. You also don't have to clean-up the state since it's automatically done when component is destroyed. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Use https://pinia-colada.esm.dev/, it’s exactly what you are looking for! |
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
-
hi,
i use for all of my fetch response of pinia , means save response in state pinia and render in html i want ask if this work is standard , when i change route i remove response of state
Beta Was this translation helpful? Give feedback.
All reactions