Pinia Store Sets same data if key not provided on usefetch #1459
Unanswered
aligzl
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Reproduction
https://stackblitz.com/edit/github-cdqcsb?file=app.vue
Steps to reproduce the bug
please check useApi composable, if i remove provide key on options pinia sets same data to states on multi fetch but everything works notmal when we set a key.
But when i fetch data on script setup all works as expected
Expected behavior
Pinia should set different data to differents states on multi fetch
Actual behavior
not works as espected
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions