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
feat: make useRiveProperty start undefined and deliver value via listener
All backends now emit the current value as the first listener emission,
so hooks no longer need a synchronous property.value read on mount.
- useRiveProperty: always starts undefined; value arrives via the
listener's first callback (not a sync read). Setter updater fn now
uses tracked React state instead of property.value.
- iOS legacy: Number/String/Boolean/Enum addListener now emits the
current value synchronously on subscribe, matching the stream-based
behaviour of the experimental backend (valueStream) and Android
(Flow with drop=0). No native changes needed elsewhere.
- Tests: mock addListener emits current value on subscribe; updated
test description to reflect the new async-first semantics.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments