Skip to content

🎥 Make videos programmatically with React

@remotion/studio: Keep restart state in sync

Jonny Burger77f26526f813
diff --git a/packages/studio/src/helpers/client-id.tsx b/packages/studio/src/helpers/client-id.tsx
index 59a8697910..49fc24d561 100644
--- a/packages/studio/src/helpers/client-id.tsx
+++ b/packages/studio/src/helpers/client-id.tsx
@@ -93,9 +93,7 @@ export const PreviewServerConnection: React.FC<{
const isOwnConfigChange =
newEvent.originatorClientId !== null &&
newEvent.originatorClientId === clientId.current;
- if (isOwnConfigChange) {
- setRestartRequired(newEvent.changeType === 'restart');
- }
+ setRestartRequired(newEvent.changeType === 'restart');
const shouldShowNotification =
!isOwnConfigChange || newEvent.changeType === 'reload';