Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache activities, quotes, etc. for when the internet connection fails #160

Open
stickyPiston opened this issue Nov 19, 2024 · 3 comments
Open
Assignees
Labels
enhancement Proposes (changes to) a feature

Comments

@stickyPiston
Copy link
Member

For some reason the radio goes completely blank when the internet connection goes out, and it does not resume when the connection is up again.

@SilasPeters SilasPeters added the enhancement Proposes (changes to) a feature label Dec 6, 2024
@peppidesu
Copy link
Contributor

this would also likely solve or mostly mitigate #183

@peppidesu
Copy link
Contributor

i have looked into this, and it would be nice if we could use RTK query's built-in cache, but that will require some stunts

@peppidesu peppidesu self-assigned this Feb 13, 2025
@peppidesu
Copy link
Contributor

@stickyPiston we could make a custom hook that falls back on the RTK query cache when the request fails. The only problem then is that the cache will be invalidated when the component unmounts, so we'll need to set keepUnusedDataFor to a high value (which might not be desirable). What is your take on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Proposes (changes to) a feature
Projects
None yet
Development

No branches or pull requests

3 participants