mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-12-02 21:14:15 +01:00
Better model updates
This commit is contained in:
1 parent
68159dfa95
commit
4f1c8b0d53
24 files changed
+273
-215
No files matched your search
@@ -1,11 +1,11 @@
|
||||
import { getKeyValue, setKeyValue } from './keyValueStore';
|
||||
import { getKeyValue, NAMESPACE_NO_SYNC, setKeyValue } from './keyValueStore';
|
||||
|
||||
export async function getLastLocation(): Promise<string> {
|
||||
return getKeyValue({ key: 'last_location', fallback: '/' });
|
||||
return getKeyValue({ namespace: NAMESPACE_NO_SYNC, key: 'last_location', fallback: '/' });
|
||||
}
|
||||
|
||||
export async function setLastLocation(pathname: string): Promise<void> {
|
||||
return setKeyValue({ key: 'last_location', value: pathname });
|
||||
return setKeyValue({ namespace: NAMESPACE_NO_SYNC, key: 'last_location', value: pathname });
|
||||
}
|
||||
|
||||
export async function syncLastLocation(): Promise<void> {
|
||||
|
||||
Reference in new issue
Block a user