Skip to content

Commit

Permalink
fix: remove debounce for setStorage (#2604)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvvvvv1vvvvvv authored Nov 3, 2024
1 parent 437a649 commit 8a18d18
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/background/utils/persistStore.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/* eslint-disable @typescript-eslint/ban-types */
import { storage } from 'background/webapi';
import { debounce } from 'lodash';
import { syncStateToUI } from './broadcastToUI';
import { BROADCAST_TO_UI_EVENTS } from '@/utils/broadcastToUI';

const persistStorage = debounce((name: string, obj: object) => {
const persistStorage = (name: string, obj: object) => {
storage.set(name, obj);
}, 500);
};

interface CreatePersistStoreParams<T> {
name: string;
Expand Down

0 comments on commit 8a18d18

Please sign in to comment.