🎥 Make videos programmatically with React
Merge main and preserve synchronous fallback sequence updates
Jonny Burger38086dac0a87
diff --cc packages/core/src/use-sequence-registration.tsindex 5ed03ea5ce,f6b4534f34..509d6d6f92--- a/packages/core/src/use-sequence-registration.ts+++ b/packages/core/src/use-sequence-registration.ts@@@ -43,14 -57,11 +57,14 @@@ export const useSequenceRegistration =};}, [id, registerSequence, registrationEnabled, unregisterSequence]);- // Commit metadata with the synchronous preview update, so continuous input- useEffect(() => {++ // Commit fallback metadata with the synchronous preview update, so continuous input+ // cannot leave lower-priority registration updates pending between commits.+ useIsomorphicLayoutEffect(() => {if (+ commitRegistrationEnabled ||registrationDisabled ||getSequence === null ||- updateSequence === null ||+ lastRegisteredGetterRef.current === null ||lastRegisteredGetterRef.current === getSequence) {return;