🎥 Make videos programmatically with React
hmm
Jonny Burgerd353a573542a
diff --git a/packages/studio-server/src/preview-server/routes/can-update-sequence-props.ts b/packages/studio-server/src/preview-server/routes/can-update-sequence-props.tsindex 9765379a2c..62a02fb0d9 100644--- a/packages/studio-server/src/preview-server/routes/can-update-sequence-props.ts+++ b/packages/studio-server/src/preview-server/routes/can-update-sequence-props.ts@@ -368,7 +368,7 @@ export const computeSequencePropsStatus = ({}};-export const computeSequencePropsStatusByLine = ({+export const computeSequencePropsStatusFromFilenameByLine = ({fileName,line,keys,diff --git a/packages/studio-server/src/preview-server/sequence-props-watchers.ts b/packages/studio-server/src/preview-server/sequence-props-watchers.tsindex e2e1bff19d..ad149acf5d 100644--- a/packages/studio-server/src/preview-server/sequence-props-watchers.ts+++ b/packages/studio-server/src/preview-server/sequence-props-watchers.ts@@ -8,7 +8,7 @@ import {waitForLiveEventsListener} from './live-events';import {getCachedNodePath, setCachedNodePath} from './node-path-cache';import {computeSequencePropsStatusFromContent,- computeSequencePropsStatusByLine,+ computeSequencePropsStatusFromFilenameByLine,computeSequencePropsStatus,} from './routes/can-update-sequence-props';@@ -29,7 +29,7 @@ const makeWatcherKey = ({return `${absolutePath}:${JSON.stringify(nodePath)}`;};-const getInitialResult = ({+const getSequencePropsStatus = ({fileName,line,column,@@ -45,27 +45,20 @@ const getInitialResult = ({// Try cached nodePath first (handles stale source maps after suppressed rebuilds)const cachedNodePath = getCachedNodePath(fileName, line, column);- if (!cachedNodePath) {- return computeSequencePropsStatusByLine({+ if (cachedNodePath) {+ const cachedResult = computeSequencePropsStatus({fileName,- line,+ nodePath: cachedNodePath,keys,remotionRoot,});- }-- const cachedResult = computeSequencePropsStatus({- fileName,- nodePath: cachedNodePath,- keys,- remotionRoot,- });- if (cachedResult.canUpdate) {- return cachedResult;+ if (cachedResult.canUpdate) {+ return cachedResult;+ }}- return computeSequencePropsStatusByLine({+ return computeSequencePropsStatusFromFilenameByLine({fileName,line,keys,@@ -88,7 +81,7 @@ export const subscribeToSequencePropsWatchers = ({remotionRoot: string;clientId: string;}): CanUpdateSequencePropsResponse => {- const initialResult = getInitialResult({+ const initialResult = getSequencePropsStatus({fileName,line,column,