Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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