Loading reveals content for page 1 while an open action still displays page 0
维护者通常 1 天内回复
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 18/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript, typescript
- 领域
- frontend
调研方向
The payload names no source files. Start from the linked reproduction and the Loading fallback behavior it exercises, then read the related first-reveal discussion in #2937. Done means the fallback stays visible until the action publishes page 1, and the heading and content show the same page. This touches reactive scheduling and action commit timing, so it needs maintainer guidance.
由索引模型根据 Issue 内容生成。
描述
Describe the bug
An action changes the selected page from 0 to 1 and stays open for one second. The heading keeps showing page 0. If the async memo was still waiting for its first answer when the action started, its answer for page 1 replaces the loading fallback after half a second. The heading and content then identify different pages.
Both are ordinary reads of the same selection:
const content = createMemo(() => fetchPage(id()));
const navigate = action(function* () {
setId(1);
yield delay(1000);
});
// Rendered together
<h2>Page {id()}</h2>
<Loading fallback="Loading…">{content()}</Loading>
Your Example Website or App
https://s.olid.uk/id/Mg06xZKxScW3rjoMkpkJng
Steps to Reproduce the Bug or Issue
- Open the reproduction. It shows “Page 0” and “Loading…”. The page 0 request stays unresolved so there is no timing requirement for the click.
- Click Go to page 1. After 500 ms the content reads “Content for page 1”, but the heading still reads “Page 0”.
- After another 500 ms the action finishes and the heading changes to “Page 1”.
Expected behavior
While the action holds the selection at page 0, the fallback stays visible. Once the action finishes, “Page 1” and “Content for page 1” appear together. The request for page 1 can start immediately.
Screenshots or Videos
No response
Platform
Solid 2.0.3, Chromium on Linux.
Additional context
The first-reveal behavior described in #2937 seems relevant. In that example the action waited for fallback cleanup. Here the action waits only for a timer, and the resolved content was fetched using the action’s still-unpublished selection.
- 主要语言
- TypeScript
- 星标
- 37k
- 派生
- 1.2k
- 平均合并
- 8 小时 43 分钟
- 30 天内合并 PR
- 365
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
solidjs/solid 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 38/100
维护者通常 1 天内回复
-
[2.0.4] Nested `<Errored>`: the outer boundary stays on an error the inner one rethrew, after the next error is one the inner one handles可能已有人在做 @MilindChatrabhuji 于 2 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 25/100
维护者通常 1 天内回复
相似的 Issue
-
agentscan:mixed-signals pending triage
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 9 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
Marker-Inc-Korea/AutoRAG#2288 ·
维护者通常 1 天内回复
-
Resources: New templates of Guangzhou Metro Line 13可能已有人在做 @rmt-svc 今天认领。 未关闭resources
难度 1/5 1 小时以内 新手友好度 76/100
railmapgen/rmg-templates#2730 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
web
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复