Closed
Description
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_createReturn
s 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