GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add more non-React events to the priority list by gaearon · Pull Request #20774 · react/react

Conversation

@gaearon

@gaearon gaearon commented Feb 9, 2021

Copy link
Copy Markdown
Collaborator

In this PR, I'm adding more events to the priority switch. I went through MDN Events and added a few Discrete events and a few Continuous ones.

This includes events that we polyfill (like mouseenter and mouseleave), the ones where we use different names (like focus and blur), and some that we never had in the list but probably should now (like popstate — #17279).

Added a test for mouseover (already in the list) and mouseenter (new in the list) inspired by a similar test using React handlers from ChangeEventPlugin-test.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

NE-SmallTown reacted with hooray emoji
All reactions
  • 🎉 1 reaction
@gaearon
Add a test for mouseover being continuous
212b1c7
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Feb 9, 2021
@gaearon
gaearon requested review from acdlite and sebmarkbage February 9, 2021 20:16
@gaearon gaearon mentioned this pull request Feb 9, 2021
Experiment: Infer the current event priority from the native event #20748
Merged
7 of 10 tasks
@sizebot

sizebot commented Feb 9, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Comparing: d919e2c...9c07beb

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js +0.14% 122.31 kB 122.48 kB +0.08% 39.42 kB 39.45 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js +0.13% 128.89 kB 129.06 kB +0.09% 41.46 kB 41.50 kB
facebook-www/ReactDOM-prod.classic.js +0.05% 406.62 kB 406.84 kB +0.07% 75.37 kB 75.42 kB
facebook-www/ReactDOM-prod.modern.js +0.06% 394.97 kB 395.19 kB +0.06% 73.49 kB 73.54 kB
facebook-www/ReactDOMForked-prod.classic.js +0.05% 406.63 kB 406.85 kB +0.07% 75.37 kB 75.42 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 9c07beb

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gaearon
Add more non-React events to the priority list
9c07beb
@gaearon
gaearon force-pushed the more-events branch from 3d593a1 to 9c07beb Compare February 9, 2021 20:22
sebmarkbage
sebmarkbage approved these changes Feb 9, 2021
View reviewed changes
@gaearon
gaearon merged commit ad8211d into react:master Feb 9, 2021
koto pushed a commit to koto/react that referenced this pull request Jun 15, 2021
@gaearon @koto
Add more non-React events to the priority list (react#20774)
90d712a
* Add a test for mouseover being continuous

* Add more non-React events to the priority list
@gaearon gaearon mentioned this pull request Sep 10, 2022
Disable Next.js scroll restoration reactjs/react.dev#5026
Closed
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
@gaearon
Add more non-React events to the priority list (react#20774)
c9415e6
* Add a test for mouseover being continuous

* Add more non-React events to the priority list
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@gaearon
Add more non-React events to the priority list (react#20774)
2f0c438
* Add a test for mouseover being continuous

* Add more non-React events to the priority list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@acdlite acdlite Awaiting requested review from acdlite
1 more reviewer
@sebmarkbage sebmarkbage sebmarkbage approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@gaearon @sizebot @sebmarkbage @facebook-github-bot
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.