Skip to content

useRive resizing stops working after remount #334

@Vlad160

Description

@Vlad160

Repository: https://github.com/Vlad160/scaling-rive

The issue is in the repository. The window resizes nicely the React component unless you click the "Toggle" button and remount it.
After that resizing stops working.

Extracting Rive animation fully to another component without conditional rendering fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions