Why use Context API if it doesn't persist?

Viewed 265

This is more for curiosity, but what's the point of using the Context API if it doesn't persist the data upon refresh? I get that we can use localStorage to fix the persistance, but then why not just use localStorage instead? With Redux, you still have the same problem so you use middleware to get around that. I'm sure I'm missing something here, but I've been dealing with Context lately and it drives me nuts when it's gone on refresh during development.

0 Answers
Related