andywer / andywer/use-inline-memo

Question: will useInlineMemo clear useless caches after each rerender?

未关闭
#8 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
164
派生
3
平均合并
17 小时 56 分钟
30 天内合并 PR
2

描述

`userInlineMemo` is great for static inline memos, but how about dynamic items with random id?

Say, user create and delete items with random ids, if I use this lib to memo callbacks of each item with their ids, when some items were gone, will these callbacks get removed from the caches inside the memo object?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。