Replies: 1 comment
-
As this might help someone else bumping into the same issue, this is how I resolved the issue: loader: async () => {
const fetchData = async () => {
await auth.authStateReady();
return getUsers(auth.currentUser);
};
return {
data: await fetchData(),
};
}, |
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.
-
Describe what's incorrect/missing in the documentation
It is nowhere to be found in the doc how to use firebase auth object in a loader route to load data, see:
That is quite an important feature to load the relevant data to my view. Has anyone got a workaround or solution? Maybe worth documenting this behaviour?
Beta Was this translation helpful? Give feedback.
All reactions