Replies: 1 comment
-
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.
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.
-
What version of React Router are you using?
6.11.1
Steps to Reproduce
Hi, everyone, 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() or i delete the line:
{ index: true, element: <Navigate to="/homepage" replace /> }
from the routes tree.
myQuery.js :
Root.js :
PizzaPage.js :
App.js :
Expected Behavior
it should fetch data from the loader
Actual Behavior
it doesn't fetch data if present the line:
{ index: true, element: <Navigate to="/homepage" replace /> }
Beta Was this translation helpful? Give feedback.
All reactions