-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing from another route shouldn't duplicate code #1143
Labels
Comments
Have you tried creating the context outside of the |
Yes, that’s what I always recommend everyone with this issue, I didn’t opened the issue because I have the problem but because a lot of people do this. |
chaance
added
enhancement
New feature or request
and removed
bug
Something isn't working
labels
Jun 5, 2022
machour
changed the title
[Bug]: Importing from another route duplicates code
Importing from another route shouldn't duplicate code
Dec 8, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Remix are you using?
Latest
What version of Node are you using? Minimum supported version is 14.
Any version
Steps to Reproduce
Expected Behavior
It should either not duplicate the code or throw an error if you import from another route.
Actual Behavior
You don’t see any error or warning, and the useContext will not return the value the Provider received.
The text was updated successfully, but these errors were encountered: