Created
December 29, 2021 02:44
-
-
Save 0916dhkim/e12bdf4c44343b8deb4359930d029b7d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function useCacheInvalidate() { | |
const cache = unstable_getCacheForType(createResponseCache); | |
return (key) => { | |
cache.delete(key); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment