jamesplease/react-request

add the ability to "set" the cached value

開放

#176 建立於 2018年5月25日

 (9 則留言) (0 個反應) (0 位負責人)JavaScript (21 個分叉)github user discovery
enhancementhelp wanted

倉庫指標

星標
 (358 顆星)
PR 合併指標
 (30 天內沒有已合併 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.)

貢獻者指南