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

Request Invalidation #4

Open
fdemir opened this issue Dec 20, 2022 · 0 comments
Open

Request Invalidation #4

fdemir opened this issue Dec 20, 2022 · 0 comments

Comments

@fdemir
Copy link

fdemir commented Dec 20, 2022

Is your feature request related to a problem? Please describe.
My feature request is related to a problem because the current behaviors doess not allow users to invalidate the cache, which can lead to incorrect or outdated information being returned. By adding a cache invalidation feature, users can ensure that they are always working with up-to-date information.

Describe the solution you'd like
I propose adding a new function to the fetchp called invalidateQuery() that allows users to invalidate the cache for a specific query. This function would take a query parameter as input, and would remove any cached results for that query from the cache. This would allow users to ensure that they are always working with the most up-to-date data, even if the cache has become stale or outdated.

Example at bellow:

response.invalidateQuery()

open to debate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant