@remotion/studio: Save default props immediately#6826
@remotion/studio: Save default props immediately#6826JonnyBurger wants to merge 16 commits intomainfrom
@remotion/studio: Save default props immediately#6826Conversation
Replace polling pattern for default props updatability with server-push subscriptions (mirroring sequence props pattern), apply default props changes immediately on save with server-side HMR suppression, and extract current default props values from the source AST. - Add /api/subscribe-to-default-props and /api/unsubscribe-from-default-props - Remove /api/can-update-default-props polling endpoint - Push 'default-props-updatable-changed' SSE events on root file changes - Extract current defaultProps values from source AST via isStaticValue/extractStaticValue - Handle TSAsExpression nodes (e.g. 'a' as const) in isStaticValue and extractStaticValue - Suppress HMR in update-default-props handler (matching save-sequence-props) - Apply default props optimistically on save, revert on error - Remove client-side remotion_ignoreFastRefreshUpdate usage for default props - Clean up default props watchers on client disconnect Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Instead of installing a new file watcher per client, use one ref-counted global watcher for the root file. Different clients can subscribe to different compositionIds; on file change, each active compositionId is recomputed and pushed. Also removes debug console.log calls. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add sendEventToClientId() to LiveEventsServer for targeted delivery. The default props watcher now sends events only to clients that subscribed to the specific compositionId, not to all connected clients. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
CI fix pushed ✅ Root cause: Fix: Removed the unused -import {getInputProps, Internals} from 'remotion';
+import {getInputProps} from 'remotion'; |
…-dev/remotion into subscribe-default-props
CI FixFailure: Cause: A debug Fix: Removed the debug |
…-dev/remotion into subscribe-default-props
@remotion/studio: Save default props immediately

TODO:
default-props-updatable-changedshould write updateProps.updateDefaultProps()API