This repository has been archived by the owner on Sep 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 243
React hooks result in breakage when trying to use react in vue #122
Comments
the same problem! do u solved it? |
It is the version of react and react-dom, i solve it by updating the version of them. |
posting in case its helpful, these are the bits required for the vue app + any kind of jest/test setup vue
jest
|
Closed
Having these issues as well |
Same here :( |
Any updates on fixing this issue? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've recently tried to use the react beautiful dnd library within a vue app. Unfortunately just by adding the DragDropContext the following error appears.
From the above 1 and 3 aren't the problem since I can verify I have only one copy of react and other react components work. As well as that the react and react dom libraries are the same version.
Which leaves issue 2. breaking the rules of hooks. Which according the reactjs docs. (https://reactjs.org/warnings/invalid-hook-call-warning.html). Are the following cases
🔴 Do not call Hooks in class components.
🔴 Do not call in event handlers.
🔴 Do not call Hooks inside functions passed to useMemo, useReducer, or useEffect.
and unfortunately I dont know enough of the internals of vuera to even attempt to figure out how the above interact or are transformed to work with vue.
The text was updated successfully, but these errors were encountered: