Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

2.0.0-rc.13 async isPending derivation makes rendered memo values disagree

已关闭
#3,766 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃

调研方向

Start with the linked reproduction and inspect the compiled JSX and connected DOM behavior described there, comparing the two reads of gate() during the delayed update. The payload names no source file or test; done means both visible gate() values remain consistent while the pending state is held or revealed, including against the current next runtime.

由索引模型根据 Issue 内容生成。

描述

Describe the bug

Two JSX expressions read the same async memo, gate(). After an update, one displays 200 while the other still displays 100 for about three seconds.

The second expression also reads an async derivation of isPending(source). Retaining its previous pending value while the correction waits is understandable, but this also leaves its ordinary gate() read disagreeing with the other visible expression.

Your Example Website or App

https://s.olid.uk/id/lg40u1dpQkC5mIUmTn_Grw

Steps to Reproduce the Bug or Issue
  1. Wait for initialization (about three seconds), until both rows show false | 100.
  2. Click Run.
  3. After about 300ms, the first row shows true | 200 and the second shows true | 100.
  4. The different right-hand values remain visible for about three seconds. Both rows eventually show false | 200.
Expected behavior

The two visible reads of the ordinary memo gate() should agree while this update is held or revealed. This does not require the pending boolean to immediately become false: the delayed pending correction can remain held without showing two different values of gate() at once.

Screenshots or Videos

No response

Platform
  • OS: Linux
  • Browser: Chromium 151.0.7922.173
  • Solid: 2.0.0-rc.13; also reproduced with current next at e44b2e4.
Additional context

Verified with compiled JSX and connected DOM in both development and production, including builds of the current next runtime and JSX compiler. There are no imperative reads, latest() calls, or loading boundaries in this example.

Two controls remove the mismatch:

  • Change the pending-true delay from 300 to 50, so the child resolves before its parents: both rows show true | 200 during the hold.
  • Make slow synchronous by returning value instead of delay(...): both rows show false | 200 after the parent work resolves.
主要语言
TypeScript
星标
36.1k
派生
1.1k
平均合并
11 小时 42 分钟
30 天内合并 PR
326

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

solidjs/solid 的其他 Issue

查看 solidjs/solid 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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