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));
|
||||
};
|
||||
|
||||
type useClearSWRCacheProps = {
|
||||
type UseClearSWRCacheProps = {
|
||||
currentKey: string;
|
||||
clearPrefix: string;
|
||||
cacheSize?: number;
|
||||
@ -45,7 +45,7 @@ export const useClearSWRCache = ({
|
||||
currentKey,
|
||||
clearPrefix,
|
||||
cacheSize = 1,
|
||||
}: useClearSWRCacheProps) => {
|
||||
}: UseClearSWRCacheProps) => {
|
||||
const { cache } = useSWRConfig();
|
||||
clearCacheEntries({
|
||||
cache,
|
||||
|
Loading…
Reference in New Issue
Block a user