jamesplease/react-request

add the ability to "set" the cached value

Open

#176 ouverte le 25 mai 2018

Voir sur GitHub
 (9 commentaires) (0 réactions) (0 assignés)JavaScript (21 forks)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (358 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

It would be nice if there were an extra render prop that allowed you to "set" the cached value to a new value, in the case of updating the cache for a mutation. This way you could nest a patch inside a get and use the update method to update the cache without having to re-request. (Same goes for post/delete as well.)

Guide contributeur