-
Notifications
You must be signed in to change notification settings - Fork 58
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
createContext: uid clash when developing npm linked packages #52
Comments
The best solution would be to use a |
Me neither 😉This could be used in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Each npm linked package has its own set of node_modules, therefore there might be multiple copies of
react-broadcast
s required by an app (all with the same version). Each of them ofc maintains its ownuid
counter butbroadcasts
is a shared key on legacy context and all those copies override what the put in context.Don't have better idea on how to deal with it than randomizing
broadcasts
key (at least in development), thoughts? Can prepare a PR handling this if you find it worthwhile.The text was updated successfully, but these errors were encountered: