Add short delay to filtering#266
Merged
jeremyzilar merged 2 commits intostagingfrom Apr 28, 2026
Merged
Conversation
…p focus while typing Refine sets filterDebounceMs to 0 for server mode; override to 350ms when filterMode is server so column toolbar filters do not lose focus on each keystroke.
Preview DeploymentPreview URL: https://preview-bdms-774-auejgdbofq-uc.a.run.app Note: This preview uses the staging API endpoints. |
TylerAdamMartinez
approved these changes
Apr 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The filtering field now pauses for
700msbefore running the query. This allows people to type more than one character, and the filter field doesn't lose focus.What changed
ListPage now sets filterDebounceMs to
350ms when the DataGrid uses server filter mode, instead of leaving Refine’s0ms default for that case.Why
With 0 ms debounce, the grid can refetch (and re-render) on every keystroke in a column filter. That often makes the filter field lose focus, so typing a full search string is frustrating. A short debounce batches updates so the field stays usable while still filtering on the server.
Only affects list pages that use this shared ListPage + server-side filtering. Client-side grids are unchanged (they keep whatever filterDebounceMs was passed in).