mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
remove logs on idb storage
This commit is contained in:
@@ -21,15 +21,12 @@ export const mergeOverridingColumns = <T>(persistedState: unknown, currentState:
|
|||||||
|
|
||||||
export const idbStateStorage: StateStorage = {
|
export const idbStateStorage: StateStorage = {
|
||||||
getItem: async (name: string): Promise<null | string> => {
|
getItem: async (name: string): Promise<null | string> => {
|
||||||
console.log(name, 'has been retrieved');
|
|
||||||
return (await get(name)) || null;
|
return (await get(name)) || null;
|
||||||
},
|
},
|
||||||
removeItem: async (name: string): Promise<void> => {
|
removeItem: async (name: string): Promise<void> => {
|
||||||
console.log(name, 'has been deleted');
|
|
||||||
await del(name);
|
await del(name);
|
||||||
},
|
},
|
||||||
setItem: async (name: string, value: string): Promise<void> => {
|
setItem: async (name: string, value: string): Promise<void> => {
|
||||||
console.log(name, 'with value', value, 'has been saved');
|
|
||||||
await set(name, value);
|
await set(name, value);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user