Repository navigation
How to clear the memory storage on logout? #878
|
Is there a way to clear the memory storage completely on logout? |
Answered by
arthurfiorette
Aug 16, 2024
Replies: 2 comments 1 reply
|
The storage has a |
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 |
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.