Best way to implement an API call in case a getter fails? #1379
Unanswered
bkroll
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.
-
In my application, the pinia store contains data that is also available from HTTP apis. I'm looking to implement a getter to look for the dataset's primary id - and if that is not available in the store, to get the dataset from the HTTP API, store it in pinea and, of course, return the dataset to the getter call. I was thinking about calling an action from the getter, but maybe there is a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions