dev......
This commit is contained in:
@@ -9,14 +9,3 @@ export function useSync() {
|
||||
const { data, update } = useStorage(STOKEY_SYNC, DEFAULT_SYNC);
|
||||
return { sync: data, updateSync: update };
|
||||
}
|
||||
// export function useSync() {
|
||||
// const storages = useStorages();
|
||||
// const opt = storages?.[STOKEY_SYNC];
|
||||
// const update = useCallback(async (obj) => {
|
||||
// await storage.putObj(STOKEY_SYNC, obj);
|
||||
// }, []);
|
||||
// return {
|
||||
// opt,
|
||||
// update,
|
||||
// };
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user