chunkBy fires of digest every few seconds
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- frontend
调研方向
查看 angular-filter 库中 chunkBy filter 的实现,可能在类似 lib/filter/chunkBy.js 的文件中。理解它如何与 AngularJS digest cycles 交互。通过创建一个使用 ng-repeat 和 chunkBy 的测试用例来复现该 issue,然后监控 $digest 频率。确定该 filter 是否导致了不必要的 watchers,或者没有正确缓存结果。
由索引模型根据 Issue 内容生成。
描述
I'm using chunkBy in an ng-repeat, and I notice that the components are re-rendering every few seconds or so. This doesn't happen if I take the chunkBy out.
Any thoughts on what could be causing it?
I'm doing something like this:
<div class="row" ng-repeat="child in $ctrl.node.children | chunkBy: 2">
....
</div>
- 主要语言
- JavaScript
- 星标
- 2.9k
- 派生
- 319
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
a8m/angular-filter 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
a8m/angular-filter#267 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
a8m/angular-filter#260 · 1 个 reaction ·
-
KiB and MiB are wrongly used in place of kB and MB可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
a8m/angular-filter#254 · 2 条评论 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 65/100
a8m/angular-filter#250 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
a8m/angular-filter#208 · 1 条评论 · 1 个 reaction ·
查看 a8m/angular-filter 的全部 Issue
相似的 Issue
-
Clinic sharing: fast sync refusal message suggests Delete Data, which only developer builds have未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
avniproject/avni-client#2228 ·
-
bug confirmed issue
难度 2/5 1-3 小时 新手友好度 68/100
open-webui/open-webui#33196 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
fable-compiler/Fable#5157 ·
维护者通常 1 天内回复
-
New tool: PaperBanana可能已有人在做 @github-actions 今天认领。 未关闭submission triage
难度 1/5 1 小时以内 新手友好度 75/100
kausalflow/tools#243 · 1 条评论 ·
维护者通常 1 天内回复
-
area: apple-music area: build-release bug effort: small priority: high
难度 2/5 1-3 小时 新手友好度 82/100
ChristianTabor/Argon#32 ·
维护者通常 1 天内回复