geocodeearth / autocomplete-element

A custom element for use with the Geocode Earth Autocomplete API.
https://geocode.earth
MIT License
8 stars 1 forks source link

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

Closed missinglink closed 2 years ago

missinglink commented 2 years ago
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 https://github.com/geocodeearth/autocomplete-element/commit/9f7d82bf4d030ceccc31ef195e46078706ec8137

@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.