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

useDeepCompareEffect should not be used with dependencies that are all primitive #27

Closed
missinglink opened this issue Oct 18, 2022 · 0 comments · Fixed by #29
Closed
Assignees

Comments

@missinglink
Copy link
Contributor

use-deep-compare-effect.esm.js:10 Uncaught Error: useDeepCompareEffect should not be used with dependencies that are all primitive values. Use React.useEffect instead.
    at checkDeps (use-deep-compare-effect.esm.js:10:11)
    at useDeepCompareEffect (use-deep-compare-effect.esm.js:32:5)
    at autocomplete_default3 (autocomplete.js:46:3)
    at renderWithHooks (react-dom.development.js:14985:18)
    at mountIndeterminateComponent (react-dom.development.js:17811:13)
    at beginWork (react-dom.development.js:19049:16)
    at HTMLUnknownElement.callCallback2 (react-dom.development.js:3945:14)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:3994:16)
    at invokeGuardedCallback (react-dom.development.js:4056:31)
    at beginWork$1 (react-dom.development.js:23964:7)

Appears to be introduced in 9f7d82b

@mxlje do you know why this used to work but now doesn't? I tried pinning earlier versions of use-deep-compare-effect without success.

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

Successfully merging a pull request may close this issue.

2 participants