-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
[DataGrid] Filtering performance: cache values #9284
Conversation
Netlify deploy previewNetlify deploy preview: https://deploy-preview-9284--material-ui-x.netlify.app/ Updated pagesNo updates. These are the results for the performance tests:
|
packages/grid/x-data-grid/src/hooks/features/filter/gridFilterUtils.ts
Outdated
Show resolved
Hide resolved
I have pushed a master merge commit to this branch to trigger Argos CI, but it's not reflected in the PR 🤔 Do I miss something or is there something wrong with GitHub? |
packages/grid/x-data-grid/src/hooks/features/filter/gridFilterUtils.ts
Outdated
Show resolved
Hide resolved
packages/grid/x-data-grid/src/hooks/features/filter/useGridFilter.tsx
Outdated
Show resolved
Hide resolved
… into perf-filtering-cache-values
@@ -295,36 +295,44 @@ export const buildAggregatedFilterApplier = ( | |||
}); | |||
}; | |||
|
|||
const isNotNull = <T>(result: null | T): result is T => result != null; |
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 would make it work for type checking at well
const isNotNull = <T>(result: null | T): result is T => result != null; | |
const isNotNull = <T>(result: T): result is NonNullable<T> => result != null; |
Not the most important, but it just caught my eye
This PR applies point 2 of #9120.