Skip to content

[pull] main from framer:main#35

Merged
pull[bot] merged 12 commits intocode:mainfrom
motiondivision:main
Oct 4, 2024
Merged

[pull] main from framer:main#35
pull[bot] merged 12 commits intocode:mainfrom
motiondivision:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Oct 4, 2024

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

mattgperry and others added 12 commits October 2, 2024 15:38
* Updating

* Updating test

* Fixing ssr will-change

* fixing tests

* Updating size limits
* Latest

* Latest

* Moving animate function to its own folder

* Moving test

* Move animate singlevalue

* Latest

* Updating

* Fixing

* Latest

* Latest

* Latest

* Adding sequence test

* Latest

* Updating bundlesize limits

* Updating
* Remove `scheduleHandoffComplete` due to Suspense

With nested Suspense boundaries, it might be that any children mount at a later timing than `queueMicrotask` guarantees. While we could switch to another timing-based method, it doesn't reliably ensure our call happens later than the mounting of the optimized appear effect. There seems to be no reliable way of telling when those nested boundaries have mounted (after completing) hydration, so removing the functionality seems to be the most sensible way. We remove optimized appear animations from the appearAnimationStore anyway after running, so this was just a minor optimization.
The trade-off might be, appear effects re-run when changing breakpoints, but to me that sounds ok, as barely any user ever changes the breakpoint.

* store handover state per appear element Id

* add test

---------

Co-authored-by: Matt Perry <mattgperry@gmail.com>
@pull pull bot added the ⤵️ pull label Oct 4, 2024
@pull pull bot merged commit 51179c3 into code:main Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants