This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
Unauthenticated fetch requests throw Illegal invocation error #443
Labels
bug
Something isn't working
Search terms you've used
fetch, window, invocation error
Bug description
The unauthenticated fetch function causes an error in the useThing hook:
Failed to execute 'fetch' on 'Window': Illegal invocation
(I expect this is a problem for all exposed components
To Reproduce
/pages/index.jsx:
/components/test/index.jsx
Expected result
The Thing object of the currently queries item should be retrieved when it exists
Actual result
The internal fetch function in the useThing() hook fails with the error:
Failed to execute 'fetch' on 'Window': Illegal invocation
Environment
Please run
npx envinfo --system --npmPackages --binaries --npmGlobalPackages --browsers
in your project folder and paste the output here:
Additional information
The text was updated successfully, but these errors were encountered: