Remix Outlet context / useOutletContext error #3950
Unanswered
BenDeGiglio
asked this question in
Q&A
Replies: 4 comments 1 reply
-
I am having precisely the same issue, were you ever able to correct this? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Same here. Any ideas or solutions so far? |
Beta Was this translation helpful? Give feedback.
0 replies
-
The error is outside of the code you've provided. Please create a reproduction of the issue: https://remix.new |
Beta Was this translation helpful? Give feedback.
0 replies
-
In my case it was a stupid mistake. I tried to use the context from outside of the outlet container. 🫣 |
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
-
I get an error ever time I try to pass values down from parent route to child. I've tried it in several different ways and all seem to result in the same error. I've boiled it down to a very simple example (actually the example on the react router site - modified a bit to load remix files). Any help on this would be much appreciated.
/routes/test/index.tsx
/routes/test/$test.tsx
error:
TypeError: Cannot destructure property 'user' of 'useUser(...)' as it is undefined.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions