-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
three and web are incompatible #1586
Copy link
Copy link
Open
Labels
area: threeRelates to the three packageRelates to the three packagearea: webrelates to web targetrelates to web targetkind: bugSomething isn't workingSomething isn't working
Milestone
Metadata
Metadata
Assignees
Labels
area: threeRelates to the three packageRelates to the three packagearea: webrelates to web targetrelates to web targetkind: bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
🐛 Bug Report
react-spring/web is not working when a
@react-spring/threehappens before, unless both is happeing in the same file. From here on this is just wild guessing from my side why this happens.I am using react spring for a web and a threejs context. Respectivly importing both with
To Reproduce
Import a animated three component and a animated web component. The useSpring web component stops working:
Expected behavior
Importing react-spring/three and react-spring/web both enable working springs no matter if imported from different files.
Link to repro (highly encouraged)
Working animations: https://codesandbox.io/s/single-file-69el5?file=/src/App.js
Non Working example: https://codesandbox.io/s/multi-file-11oph?file=/src/App.js
Environment
react-springv9.2.3reactv17.0.2