react-lottie
react-lottie copied to clipboard
setDirection and setSpeed need to run on componentDidMount
Hello,
setDirection() and setSpeed() runs only on componentDidUpdate() and needs to run also on componentDidMount() if we want that default direction is -1 for example.
YES THIS. Seriously this was driving me NUTS. I do it on the wrapper now. But it's insane this isn't supported.
Here is an example of a simple fix around.
https://codesandbox.io/embed/powmy7llx