M
14d ago

Initial Values Runtime React Don't Work

When doing the suggested way to set initial values for an animation at runtime, 'rive' is still null and i cant set the initial values.

I even tried this way, but it only works about 70% of the time.


1 reply
P
P
12d ago

Using useEffect is currently the recommended way to do this. onLoad may not work as intended due to the limitations described here: https://rive.app/community/doc/parameters-and-return-values/docJlDMNulDh

I set up an example here which should work consistently.