Skip to content

Commit

Permalink
chore: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiryous committed Nov 19, 2024
1 parent 5704fc0 commit f21d1b5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions keep-ui/utils/state.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
import { useSWRConfig } from "swr";

type MutateArgs = [string, (data: any) => any];

export const mutateLocalMultiple = (args: MutateArgs[]) => {
const { cache } = useSWRConfig();
args.forEach(([key, mutateFunction]) => {
const currentData = cache.get(key as string);
cache.set(key as string, mutateFunction(currentData));
});
};

export const useRevalidateMultiple = () => {
const { mutate } = useSWRConfig();
return (keys: string[]) =>
Expand Down

0 comments on commit f21d1b5

Please sign in to comment.