close
Skip to content

fix(mui): make useDataGrid filter debounce configurable#7382

Open
slegarraga wants to merge 1 commit intorefinedev:mainfrom
slegarraga:fix/mui-usedatagrid-filter-debounce-ms-7369
Open

fix(mui): make useDataGrid filter debounce configurable#7382
slegarraga wants to merge 1 commit intorefinedev:mainfrom
slegarraga:fix/mui-usedatagrid-filter-debounce-ms-7369

Conversation

@slegarraga
Copy link
Copy Markdown

Summary

  • add a filterDebounceMs option to useDataGrid for server-side filtering
  • keep the existing 300ms default while allowing consumers to override or disable the debounce
  • add a focused spec that verifies the configured debounce delays the server request while keeping the filter UI responsive

Testing

  • pnpm --filter @refinedev/mui test -- src/hooks/useDataGrid/index.spec.ts
  • pnpm biome check packages/mui/src/hooks/useDataGrid/index.ts packages/mui/src/hooks/useDataGrid/index.spec.ts

Closes #7369

@slegarraga slegarraga requested a review from a team as a code owner April 6, 2026 18:59
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 6, 2026

⚠️ No Changeset found

Latest commit: e0bff88

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@arndom
Copy link
Copy Markdown
Contributor

arndom commented Apr 7, 2026

Looks good @slegarraga, add the changeset and the reviewers should have no issue with 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.

useDataGrid sends API requests on every keystroke causing performance issues and race conditions

2 participants