Skip to content
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

Errors got when I use context.provider #37

Closed
Yulight1401 opened this issue Jan 13, 2021 · 4 comments
Closed

Errors got when I use context.provider #37

Yulight1401 opened this issue Jan 13, 2021 · 4 comments

Comments

@Yulight1401
Copy link

Yulight1401 commented Jan 13, 2021

Hello, when I try the example code in my project, I got these errors, and page go blank. I have search this problem but cannot find solution.

"react": "^16.8.6",
"use-context-selector": "^1.3.5",
"scheduler": "^0.20.1",

image

@dai-shi
Copy link
Owner

dai-shi commented Jan 13, 2021

Hm, not sure what is existingProxy.
Could you create a minimal repro with codesandbox?

@prakash1998
Copy link

Hi, i got the similar error and found that it is because of react-hot-loader in my case, so i had removed hot on temporary basis from my app, so it don't preserve state on hot reload, but i think react-hot-loader may require some functions to restore/preserve states, this library may miss it, it's my assumption, i'll edit comment after a bit of research on exact cause.

@dai-shi
Copy link
Owner

dai-shi commented Jan 17, 2021

react-hot-loader is being deprecated by fast refresh. If this issue only happens with react-hot-loader, it's not much worth putting effort. curious what's conflicting though. cc @theKashey

@theKashey
Copy link

Sounds like this line - https://github.com/gaearon/react-hot-loader/blob/6032f4255e0268bb794c1e9b8ae5b436400ffbb5/src/reconciler/resolver.js#L38

The question is what existingProxy and what is existingProxy.getCurrent. Have no idea of the error source.

@dai-shi dai-shi closed this as completed Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants