feat: integrate @sigrea/core v0.5.0 mount lifecycle#16
Merged
Conversation
- Replace "Sigrea" with "Mendako" in code examples to match core - Add detailed lifecycle timing explanation for useLayoutEffect/useEffect - Document SSR behavior and browser environment differences - Clarify when onMount and watch effects activate relative to paint
- Add useMolecule.mount-lifecycle.test.ts to verify mount timing - Test that onMount is called after component mount - Test that watch execution is deferred until after mount - Test that watch callbacks execute when signals change post-mount - Update baseline-browser-mapping to latest version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Integrates @sigrea/core v0.5.0 mount lifecycle APIs for precise control over molecule side effects.
Summary
Core Integration
useIsomorphicLayoutEffectfor Vue3-aligned timing (browser) and SSR safety (Node.js)useEffectin SSR environments to avoid hydration warningsDocumentation
useMoleculeTesting
onMountis called after component mountwatchexecution is deferred until after mountwatchcallbacks execute when signals change post-mountDependencies
Verification
mise run ci