mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
fix PR feedback
This commit is contained in:
parent
c73ee604f2
commit
108ed07622
@ -30,7 +30,7 @@ export const clearCacheEntries = ({
|
|||||||
keysToDelete.forEach((key) => cache.delete(key));
|
keysToDelete.forEach((key) => cache.delete(key));
|
||||||
};
|
};
|
||||||
|
|
||||||
type useClearSWRCacheProps = {
|
type UseClearSWRCacheProps = {
|
||||||
currentKey: string;
|
currentKey: string;
|
||||||
clearPrefix: string;
|
clearPrefix: string;
|
||||||
cacheSize?: number;
|
cacheSize?: number;
|
||||||
@ -45,7 +45,7 @@ export const useClearSWRCache = ({
|
|||||||
currentKey,
|
currentKey,
|
||||||
clearPrefix,
|
clearPrefix,
|
||||||
cacheSize = 1,
|
cacheSize = 1,
|
||||||
}: useClearSWRCacheProps) => {
|
}: UseClearSWRCacheProps) => {
|
||||||
const { cache } = useSWRConfig();
|
const { cache } = useSWRConfig();
|
||||||
clearCacheEntries({
|
clearCacheEntries({
|
||||||
cache,
|
cache,
|
||||||
|
Loading…
Reference in New Issue
Block a user