jamesplease/react-request

add the ability to "set" the cached value

オープン

#176 opened on 2018/05/25

 (9 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (21 件のフォーク)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (358 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.)

コントリビューターガイド