Hildebrandt Tobias
12/04/2023, 11:14 AMuseContext
.
So do I need to apply the way described here: https://stackoverflow.com/questions/74757787/react-data-router-pass-context-to-loader
or is there a simpler way that I don't see for this overall issue?turansky
12/06/2023, 11:36 PMQueryClient
inside loader context?Hildebrandt Tobias
12/08/2023, 8:55 PMQueryClient
at all yet. I am still trying to learn react and kotlin-react.
Do you have any pointers what best to google or a good tutorial/article?turansky
12/08/2023, 10:13 PMHildebrandt Tobias
12/08/2023, 10:33 PMHildebrandt Tobias
12/08/2023, 10:45 PMbrowserRouter
.
I wonder if this also works with the react built in createContext()
.
My question was more aimed at how to even get the context into
the loaders and have them reference the correct context.turansky
12/08/2023, 11:09 PMturansky
12/08/2023, 11:09 PMHildebrandt Tobias
12/09/2023, 2:34 PMturansky
12/09/2023, 3:27 PMQueryClient
in loader context (loader parameter) is what will cover your needsturansky
12/09/2023, 3:28 PMHildebrandt Tobias
12/09/2023, 10:25 PM