jamesplease/react-request

add the ability to "set" the cached value

Open

#176 创建于 2018年5月25日

在 GitHub 查看
 (9 评论) (0 反应) (0 负责人)JavaScript (21 fork)github user discovery
enhancementhelp wanted

仓库指标

Star
 (358 star)
PR 合并指标
 (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.)

贡献者指南