diff --git a/theatre/studio/src/Studio.ts b/theatre/studio/src/Studio.ts index 42f991f..7ab6fdb 100644 --- a/theatre/studio/src/Studio.ts +++ b/theatre/studio/src/Studio.ts @@ -135,7 +135,7 @@ export class Studio { storeOpts.persistenceKey = opts.persistenceKey } - if (opts?.usePersistentStorage === false) { + if (opts?.usePersistentStorage === false || typeof window === 'undefined') { storeOpts.usePersistentStorage = false }