How to clear the memory storage on logout? #878
Unanswered
GabrieleMaurina
asked this question in
Q&A
Replies: 2 comments 1 reply
-
The storage has a |
Beta Was this translation helpful? Give feedback.
0 replies
-
What am I doing wrong? import axios from 'axios';
import { buildMemoryStorage, setupCache } from 'axios-cache-interceptor';
let storage = buildMemoryStorage();
setupCache(axios, { storage });
storage.clear(); I get this in the console:
By the way, if I do not call clear(), the caching works |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to clear the memory storage completely on logout?
Beta Was this translation helpful? Give feedback.
All reactions