(store: Store)
| 31 | * Serialize, encode, and save @param store to localStorage and update URL. |
| 32 | */ |
| 33 | export function saveStore(store: Store): void { |
| 34 | const hash = encodeStore(store); |
| 35 | localStorage.setItem('playgroundStore', hash); |
| 36 | history.replaceState({}, '', `#${hash}`); |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * Check if @param raw is a valid Store by if |
no test coverage detected