Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

add ability to evict the cached value #179

Closed
ianstormtaylor opened this issue May 25, 2018 · 2 comments
Closed

add ability to evict the cached value #179

ianstormtaylor opened this issue May 25, 2018 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ianstormtaylor
Copy link

Instead of clearing the entire cache, just being able to evict a single value by key. But handled under the covers such that it just adds an extra exict() argument to the render prop function's arguments.

Similar to #176

@jamesplease
Copy link
Owner

Thanks for the issue! I am open to adding something like this, although I would discourage the direct manipulation of the response cache unless you are trying to free up memory. As I mentioned over in #176, React Request is not meant to be a replacement of a normalized store like InMemoryCache, which impacted some of the design decisions like the limited ability to modify the cache.

@jamesplease jamesplease added enhancement New feature or request question Further information is requested labels May 25, 2018
@jamesplease jamesplease added help wanted Extra attention is needed and removed question Further information is requested labels Jul 11, 2018
@jamesplease
Copy link
Owner

I'm going to close this and consider the functionality here as something to be implemented alongside #176

To summarize my thoughts on these features: I'm open to it but won't have the time to implement it myself.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants