You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To run pnpm examples dev after pnpm i, when checking using-use-subscription, this error encounter.
Unhandled Runtime Error
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
Source
javascript/packages/react-query/dist/index.js (12:23) @ Object.useContext
10 | );
11 | const helpers = queryCore.createQueryHookHelpers({
> 12 | useContext: () => react.useContext(Context)
| ^
13 | });
14 | function useContext2() {
15 | const ctx = react.useContext(Context);
Call Stack
Show collapsed frames
The text was updated successfully, but these errors were encountered:
Binlogo
changed the title
v0.x: examples/nextjs using-use-subscription "Invalid hook call"
v0.x: examples using-use-subscription "Invalid hook call"
Aug 13, 2024
To run
pnpm examples dev
afterpnpm i
, when checkingusing-use-subscription
, this error encounter.The text was updated successfully, but these errors were encountered: