Skip to content

feat(lynx): run Block passive effects after commit - #309

Merged
Huxpro merged 1 commit into
new-lynxfrom
huxcx/m3-block-passive-effects-290
Sep 8, 2026
Merged

Huxpro merged 1 commit into
new-lynxfrom
huxcx/m3-block-passive-effects-290

Conversation

@Huxpro

@Huxpro Huxpro commented Sep 8, 2026 •

Copy link
Copy Markdown
Owner

Part of #290.

This closes the smallest independent semantic blocker from the M3 default-path audit: page-level passive effects on the Block background core.

  • extends the shared universal hook scope with a distinct passive commit scheduler
  • publishes Block passive cleanup/create work only after host acknowledgement
  • schedules through the root-resolved Lynx-safe microtask service and flushes before the next render or unmount
  • preserves old-phase cleanup when a hook slot changes layout/passive phase
  • keeps insertion effects refused because Block has no pre-mutation phase
  • preserves the zero-passive hot path by allocating passive task arrays lazily

Local evidence:

  • focused lifecycle/ack/phase tests: 99 passed
  • all Lynx tests: 865 passed
  • universal-core family: 859 passed
  • changed production sources typecheck clean; package Lynx typecheck clean
  • pnpm sync clean
  • exact-head production core-switch controls clean: Block BTS 56,547 gzip vs 56,168 in the bench(lynx): audit M3 product default path #308 audit receipt (+379 B); MTS remains byte-identical across the core switch

This does not flip the production default. Context ownership, insertion phase, boundaries/portals, arbitrary component/list scope, and fallback/HMR closure remain tracked by #290.

@github-actions github-actions Bot added the feat label Sep 8, 2026
@Huxpro
Huxpro marked this pull request as ready for review September 8, 2026 10:55
@Huxpro
Huxpro merged commit e8c2e0a into new-lynx Sep 8, 2026
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant