-
Hi, there I'm totally new to React and Remix, I have a route
I don't know how to call the async function |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Nov 13, 2023
Replies: 1 comment 3 replies
-
You can't do that, Remix doesn't support React Server Components, and in a normal React component you can't call that, instead you need to export a loader and call |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Whatever you get from your outlet, get it in the loader. So in your child route loader get the user profile, or if you only need an ID keep it on a cookie/session after login so you can just read the ID from there.