Do you want to request a feature or report a bug?
Bug
What is the current behavior?
A specific order of unmounting and remounting unstable_createReturns from react-call-return causes an invariant violation in unmountHostComponents.
Reproduce
The following sandbox example crashes with an invariant violation when both the min and cycle props are odd numbers greater than zero.
https://codesandbox.io/s/llyjz19rz7
What is the expected behavior?
The app does not crash and cycles the number of items in the list.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
react and react-dom versions 16.1 and newer, react-call-return version 0.5.0
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
A specific order of unmounting and remounting
unstable_createReturns fromreact-call-returncauses an invariant violation inunmountHostComponents.Reproduce
The following sandbox example crashes with an invariant violation when both the
minandcycleprops are odd numbers greater than zero.https://codesandbox.io/s/llyjz19rz7
What is the expected behavior?
The app does not crash and cycles the number of items in the list.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
reactandreact-domversions 16.1 and newer,react-call-returnversion 0.5.0