Skip to content

Correct description of getSnapshotBeforeUpdate - #719

Merged
rschristian merged 2 commits into
preactjs:masterfrom
calebeby:patch-1
Oct 8, 2025
Merged

rschristian merged 2 commits into
preactjs:masterfrom
calebeby:patch-1

Conversation

@calebeby

Copy link
Copy Markdown
Contributor

Going off of Dan's diagram it looks like getSnapshotBeforeUpdate happens after render

@rschristian rschristian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for this sitting for so long, going through open PRs here and noticed it's still sat & absolutely a change we should've merged in.

@rschristian
rschristian merged commit 4f643e2 into preactjs:master Oct 8, 2025
5 checks passed
@calebeby

Copy link
Copy Markdown
Contributor Author

Haha I definitely forgot that I ever made this PR 馃槀

@rschristian

Copy link
Copy Markdown
Member

5 years later, I'd be surprised if you remembered it 馃槄

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