use always of pinia #2936
-
hi, |
Beta Was this translation helpful? Give feedback.
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.
-
Use https://pinia-colada.esm.dev/, it’s exactly what you are looking for! |
Beta Was this translation helpful? Give feedback.
Use https://pinia-colada.esm.dev/, it’s exactly what you are looking for!