You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When ever I reuse the component that load the .riv file it's still re-fetched the riv file again no matter how many time it is fetched before. Is there any caching mechanism to deal with it? I am using vite and import it as an url
We've released a new useRiveFile hook that should address this. See #153 .
Now you can pass in an existing RiveFile instance for an animation to the LoadingOverlayLoader instead of instantiating within the component. This lets you cache the RiveFile instance outside the component and use it across multiple components while fetching it only once.
When ever I reuse the component that load the
.riv
file it's still re-fetched the riv file again no matter how many time it is fetched before. Is there any caching mechanism to deal with it? I am using vite and import it as an urlThe text was updated successfully, but these errors were encountered: