(key: string, state: Record<string, unknown>)
| 135 | } |
| 136 | |
| 137 | function saveDomainStore(key: string, state: Record<string, unknown>): void { |
| 138 | if (Object.keys(state).length > 0) { |
| 139 | localStorage.setItem(key, JSON.stringify({ state, version: 0 })); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | export function needsMigration(): boolean { |
| 144 | if (typeof window === 'undefined') return false; |
no test coverage detected