How to clear the memory storage on logout? #878
-
|
Is there a way to clear the memory storage completely on logout? |
Beta Was this translation helpful? Give feedback.
Answered by
arthurfiorette
Aug 16, 2024
Replies: 2 comments 1 reply
-
|
The storage has a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
arthurfiorette
-
|
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
The storage has a
clear()method.