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

[Content]: Component Lifecycle diagram and more details

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

还没有人认领这个 Issue。

评估

这个 Issue 还没有评估数据。

描述

pending review
📚 Subject area/topic

Component Lifecycle

📋 Page(s) affected (or suggested, for new content)

https://docs.solidjs.com/concepts/components/basics#component-lifecycles

📋 Description of content that is out-of-date or incorrect

The component lifecycle section is fairly short and only gives a high-level understanding of the topic. With Solid's lifecycle being pretty different from other frameworks and an important concept to understand I think there should be more content dedicated to this that goes more in depth.

  • Diagram of the component lifecycle
  • Include the lifecycle functions onMount, onCleanup
  • When elements are created
  • Explanation of how solid schedules updates
  • Include when the various effects are run (createEffect, createRenderEffect, createComputed)
  • When child components are created
  • Refs lifecycle (maybe just when they are attached)
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)

These are both just an initial attempt, more work would need to be done ideally from someone who understands these details way better than myself

Excalidraw diagram: https://excalidraw.com/#json=HGJ-iskfFERCO7F1AnRKd,G7Yv0q6qtHM2m12EcObpjw

SolidJS Playground: https://playground.solidjs.com/anonymous/0ed6a0ea-c7a8-4a14-a271-bbf1f446df2e

主要语言
MDX
星标
292
派生
361
平均合并
7 小时 51 分钟
30 天内合并 PR
1

贡献指南

打开贡献指南

从这里开始

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

solidjs/solid-docs 的其他 Issue

查看 solidjs/solid-docs 的全部 Issue

把新 issue 发到你的邮箱

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