maisano / react-router-transition

painless transitions built for react-router, powered by react-motion
http://maisano.github.io/react-router-transition/
MIT License
2.59k stars 138 forks source link

How to use Spring on Transform and mapstyle #35

Closed cavaloni closed 7 years ago

cavaloni commented 7 years ago

When applying spring to a value on transform it causes a constant looping error. "[object Object]NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNa…NNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN"}

maisano commented 7 years ago

@cavaloni sounds like a bad config. can you paste what your usage looks like?

maisano commented 7 years ago

@cavaloni if i understand the problem, it sounds like you're using spring inside of mapStyles. spring is solely for defining a config struct that react-motion consumes and it shouldn't happen in mapStyles.