-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autocomplete: don't change state on every keystroke #48485
Conversation
Size Change: +27 B (0%) Total Size: 1.34 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes make sense to me, but I'd feel better if @chad1008 could also take a look and test these changes in the editor, given his familiarity with the component.
Also, could you add an entry to the components package's CHANGELOG? Thank you 🙏
Flaky tests detected in 477cb19. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4284498135
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only needs a CHANGELOG entry, but otherwise looks and works great 🙌
4b28746
to
477cb19
Compare
What?
Every time the text changes, we're resetting some state to an empty array, which triggers another re-render.
Why?
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast