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

Do not call Hooks inside useEffect(...), useMemo(...) #535

Closed
RackweLLizm opened this issue Oct 10, 2023 · 1 comment
Closed

Do not call Hooks inside useEffect(...), useMemo(...) #535

RackweLLizm opened this issue Oct 10, 2023 · 1 comment

Comments

@RackweLLizm
Copy link
Contributor

react-dom.development.js:67 Warning: Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks
at GrailLayout2 (http://127.0.0.1/node_modules/.vite/deps/@antv_gi-assets-basic.js?v=4ddf2007:22127:21)
at IntlProvider3 (http://127.0.0.1/node_modules/.vite/deps/chunk-NXX7CDCL.js?v=4ddf2007:5538:45)
at div
at GISDK2 (http://127.0.0.1/node_modules/.vite/deps/@antv_gi-sdk.js?v=4ddf2007:5558:42)
at div
at div
at observerComponent (http://127.0.0.1/node_modules/.vite/deps/mobx-react-lite.js?v=4ddf2007:314:12)
at SonucPage
at div
at main
at http://127.0.0.1/node_modules/.vite/deps/chunk-WRUAWY3O.js?v=4ddf2007:4504:29
at http://127.0.0.1/node_modules/.vite/deps/chunk-WRUAWY3O.js?v=4ddf2007:4456:39
at section
at http://127.0.0.1/node_modules/.vite/deps/chunk-WRUAWY3O.js?v=4ddf2007:4514:40
at http://127.0.0.1/node_modules/.vite/deps/chunk-WRUAWY3O.js?v=4ddf2007:4456:39
at section
at http://127.0.0.1/node_modules/.vite/deps/chunk-WRUAWY3O.js?v=4ddf2007:4514:40
at http://127.0.0.1/node_modules/.vite/deps/chunk-WRUAWY3O.js?v=4ddf2007:4456:39
at observerComponent (http://127.0.0.1/node_modules/.vite/deps/mobx-react-lite.js?v=4ddf2007:314:12)
at observerComponent (http://127.0.0.1/node_modules/.vite/deps/mobx-react-lite.js?v=4ddf2007:314:12)
at RenderedRoute (http://127.0.0.1/node_modules/.vite/deps/react-router-dom.js?v=4ddf2007:3136:5)
at Routes (http://127.0.0.1/node_modules/.vite/deps/react-router-dom.js?v=4ddf2007:3545:5)
at AxiosInterceptor (http://127.0.0.1/src/axios/mainConfig.ts:24:29)
at DndProvider2 (http://127.0.0.1/node_modules/.vite/deps/react-dnd.js?v=4ddf2007:1284:9)
at LocaleProvider2 (http://127.0.0.1/node_modules/.vite/deps/chunk-WRUAWY3O.js?v=4ddf2007:656:33)
at ProviderChildren2 (http://127.0.0.1/node_modules/.vite/deps/chunk-WRUAWY3O.js?v=4ddf2007:1515:28)
at LocaleReceiver2 (http://127.0.0.1/node_modules/.vite/deps/chunk-WRUAWY3O.js?v=4ddf2007:697:40)
at ConfigProvider2 (http://127.0.0.1/node_modules/.vite/deps/chunk-WRUAWY3O.js?v=4ddf2007:1599:17)
at Router (http://127.0.0.1/node_modules/.vite/deps/react-router-dom.js?v=4ddf2007:3492:15)
at BrowserRouter (http://127.0.0.1/node_modules/.vite/deps/react-router-dom.js?v=4ddf2007:3941:5)
at App

@pomelo-nwu
Copy link
Member

@RackweLLizm Thank you for your correction, we did make some mistakes about rules-of-hooks, we will solve it in this upgrade: #536

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

2 participants