-
Notifications
You must be signed in to change notification settings - Fork 40
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
Conversation
src/hooks/useRiveFile.ts
Outdated
* 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, |
There was a problem hiding this comment.
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
There was a problem hiding this 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
src/hooks/useRiveFile.ts
Outdated
* | ||
* @param params - Object containing parameters accepted by the Rive file in the rive-js runtime, | ||
* | ||
* @returns {RiveFile} Contains the active RiveFile instance (`riveFile`). |
There was a problem hiding this comment.
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.
No description provided.