Skip to content

react-call-return: Expected to find a host parent. #11955

Closed
@rmhartog

Description

@rmhartog

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions