Can't access data from useFetch in action #1746
Unanswered
v3nt
asked this question in
Help and Questions
Replies: 1 comment
-
I have got the same issue in gaining the async JSON data via axios in the store, but using the data directly in the |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I'm requesting a single post from a CMS but can't set the stat.post to data[0].
The data is returned but I can't sign the data's first item in an array to the state. Only the whole thing. And then I can't seem to get data[0] elsewhere in the app.
what I want to map is
this.post = data[0];
But I don't understand why its being return in the format it is. IF I try to set the data[0]
ie
Beta Was this translation helpful? Give feedback.
All reactions