Don't use persistent storage in ssr mode
This commit is contained in:
parent
4d55ffe087
commit
3c9481f1b7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue