Skip to content

Reimplementing async event handlers#2650

Merged
mergetron[bot] merged 2 commits intomainfrom
fix/async-handlers
May 7, 2024
Merged

Reimplementing async event handlers#2650
mergetron[bot] merged 2 commits intomainfrom
fix/async-handlers

Conversation

@mattgperry
Copy link
Copy Markdown
Collaborator

This PR reimplements async event handlers.

Async event handlers were originally introduced to help better batch React state updates across multiple event listeners but deferred keyframe PR reverted this changed to remove a potential extra frame of latency from these events.

Within Framer this has uncovered conflicts with user codes setting state without a startTransition.

@mattgperry mattgperry requested review from iamakulov and kurtextrem May 6, 2024 11:36
@mergetron mergetron Bot merged commit 4a30f29 into main May 7, 2024
@mergetron mergetron Bot deleted the fix/async-handlers branch May 7, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants