Replies: 1 comment 2 replies
-
not sure if this is just a typo, but
so your "response" is now - data={response}
+ data={data} also, please bear in mind that catching errors manually in the |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I'm trying to get different items of a menu for my BBQ trailer app (sides, sandwiches, pounds, drinks, desserts, etc..) and am using individual
useQuery
calls with Axios.The problem I'm running into is when trying to pass the
response
from theuseQuery
call to the<FlatList/>
component I'm getting the FlatList component empty. However theconsole.log(response)
is logging the menu items.Changing
response
todata
in the Axios call doesn't change the behavior.`
export default function MenuSides() {
}
`
Beta Was this translation helpful? Give feedback.
All reactions