(
key: string,
initialValue: T,
options?: { getOnInit?: boolean }
)
| 126 | * ) |
| 127 | */ |
| 128 | export function atomWithWindowStorage<T>( |
| 129 | key: string, |
| 130 | initialValue: T, |
| 131 | options?: { getOnInit?: boolean } |
| 132 | ) { |
| 133 | return atomWithStorage<T>( |
| 134 | key, |
| 135 | initialValue, |
| 136 | createWindowScopedStorage<T>(), |
| 137 | options |
| 138 | ) |
| 139 | } |
no test coverage detected