React-spring: Can't use useTrail with useChain

Created on 10 Jan 2019  路  4Comments  路  Source: pmndrs/react-spring

Reproduction: https://codesandbox.io/s/619qw0xxxz

App crashes, and there is an error on the console but it doesn't seem to be very helpful.
I ran into this on my local project and I was getting a "Cannot read property 'stop' of undefined" error if that helps.

bug

Most helpful comment

Rewriting hooks from the ground up currently. There were lots of wires thrown about that made inspection hard. It looks very promising already and i think when it's out i will remove the experimental status and make hooks official.

All 4 comments

Thanks, will take a look. Chaining a single item doesn't make sense but it shouldn't crash.

I agree, and I ran into it chaining multiple ones but I wanted to isolate it.

Rewriting hooks from the ground up currently. There were lots of wires thrown about that made inspection hard. It looks very promising already and i think when it's out i will remove the experimental status and make hooks official.

Fixed in #632

Was this page helpful?
0 / 5 - 0 ratings