Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add use rive file hook #259

Merged
merged 8 commits into from
May 28, 2024
Merged

Conversation

bodymovin
Copy link
Contributor

No description provided.

* It sets up a RiveFile based on provided source parameters (URL or ArrayBuffer) and ensures
* proper cleanup to avoid memory leaks when the component unmounts or inputs change.
*
* @param params - Object containing parameters accepted by the Rive file in the rive-js runtime,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rive-js runtime? we should remove this from the comments. This still refers to the old runtime

Copy link
Contributor

@HayesGordon HayesGordon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for this

*
* @param params - Object containing parameters accepted by the Rive file in the rive-js runtime,
*
* @returns {RiveFile} Contains the active RiveFile instance (`riveFile`).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we updated the return type for the hook to include status, we should probably change the type here to the RiveFileState type.

@bodymovin bodymovin merged commit ac9f322 into main May 28, 2024
1 check passed
@bodymovin bodymovin deleted the feature/add-use-rive-file-hook branch May 28, 2024 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants