Closed nkbt closed 4 years ago
In newer versions of React getDerivedStateFromProps was called on any update even if props haven't changed. Replacing it with componentDidUpdate fix the issue of never getting into isResting state
getDerivedStateFromProps
isResting
Published to http://nkbt.github.io/react-collapse/ with the latest fix, working well
In newer versions of React
getDerivedStateFromProps
was called on any update even if props haven't changed. Replacing it with componentDidUpdate fix the issue of never getting intoisResting
state