Replies: 2 comments
-
Seems like that this prevent the fetching of the loader, because removing this line it fetch the data as usual:
how can i change it to keep working with react-query ? |
Beta Was this translation helpful? Give feedback.
-
Seems like only in my React app hosted on SAP it doesn’t load children loader data with axios istance custom baseURL. (maybe its that ? cause if i put the public tynicode api url it works). The app connect to db with vscode run configuration if can help to resolve tje question. I recreated sandbox with this code but seems working. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, everyone, I'm following this two guides to build my react app with react-query and react-router-dom
https://tkdodo.eu/blog/react-query-meets-react-router
https://reactrouter.com/en/main/guides/data-libs
However, it appears that react-query's data loaded with one of my Root children's loader are not seen and it returns a failed request error.
The data loads only if i put inside the Root loader a ensureQueryData().
What is wrong with my code ?
myQuery.js :
Root.js :
PizzaPage.js :
App.js :
Beta Was this translation helpful? Give feedback.
All reactions