mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 13:00:13 +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 = {
|
||||
getItem: async (name: string): Promise<null | string> => {
|
||||
console.log(name, 'has been retrieved');
|
||||
return (await get(name)) || null;
|
||||
},
|
||||
removeItem: async (name: string): Promise<void> => {
|
||||
console.log(name, 'has been deleted');
|
||||
await del(name);
|
||||
},
|
||||
setItem: async (name: string, value: string): Promise<void> => {
|
||||
console.log(name, 'with value', value, 'has been saved');
|
||||
await set(name, value);
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user