fw-11 step 01 — React, with questions
Goal
Read with specific questions you can answer wrongly. "Read the scheduler" is not a task.
Tasks
Work through these, comparing each against your own implementation:
- Why does a Fiber initialise every field in the constructor, even to
null? (You know this frombi-05— confirm it.) - What is a lane, and why lanes rather than a numeric priority?
- Where is the double buffer (
current/alternate), and what happens to the discarded tree? - What does
bailoutcheck, and how does it skip a subtree? - Why do effects have separate passive and layout phases, and when does each run relative to paint?
- How is a hydration mismatch detected, and what is recoverable versus fatal?
- What does the scheduler use as its host callback, and what changes with
scheduler.yield()?
For each: answer the eight gate questions, and classify every difference from your implementation as essential / hardening / accretion with evidence.
Done when
- Seven questions answered against source
- Every difference classified, with a commit, issue, or test as evidence
- Readings logged in the shared learning log