-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[DataGridPro] Server side data source lazy loading #13878
[DataGridPro] Server side data source lazy loading #13878
Conversation
a16525b
to
9302410
Compare
3e7e817
to
f747d05
Compare
3d0de1a
to
04bff9b
Compare
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.
Really nice initial implementation 👍
Thank you for picking this up. 🙏
packages/x-data-grid-pro/src/hooks/features/dataSource/useGridDataSource.ts
Outdated
Show resolved
Hide resolved
packages/x-data-grid-pro/src/hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.ts
Outdated
Show resolved
Hide resolved
packages/x-data-grid-pro/src/hooks/features/dataSource/useGridDataSource.ts
Outdated
Show resolved
Hide resolved
2aaa688
to
99cd596
Compare
9257ca3
to
5eefb3d
Compare
6df3bb1
to
eae88f2
Compare
fcecea3
to
9230211
Compare
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.
Nice job combining lazy and infinite loading and explaining this well in the docs!
docs/data/data-grid/server-side-data/ServerSideLazyLoadingModeUpdate.tsx
Show resolved
Hide resolved
f50f6de
to
14cd89d
Compare
Co-authored-by: Bilal Shafi <[email protected]> Signed-off-by: Armin Mehinovic <[email protected]>
Co-authored-by: Sycamore <[email protected]> Signed-off-by: Armin Mehinovic <[email protected]>
c0fe72a
to
96063f0
Compare
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.
Great job on the docs @arminmeh !
Signed-off-by: Armin Mehinovic <[email protected]> Co-authored-by: Kenan Yusuf <[email protected]> Co-authored-by: Bilal Shafi <[email protected]> Co-authored-by: Sycamore <[email protected]>
Signed-off-by: Armin Mehinovic <[email protected]> Co-authored-by: Kenan Yusuf <[email protected]> Co-authored-by: Bilal Shafi <[email protected]> Co-authored-by: Sycamore <[email protected]>
@arminmeh seems like this is scheduled to be released as part of v8? Is it possible to have it ready to use in version 7.xx? (Would like to use this feature ASAP) I am currently using data source for fetching data. AFAIK, this way of lazy loading (https://mui.com/x/react-data-grid/row-updates/#lazy-loading) is not compatible with data source. Premium customer - Support ID: 96081 |
@tommy-wl do you think that you can plan a migration to v8? It should not be hard to do so Plan is to have the stable version 8 out somewhere in March. |
Part of #8179
Resolves #10857
Resolves #10858
Preview: https://deploy-preview-13878--material-ui-x.netlify.app/x/react-data-grid/server-side-data/lazy-loading/
Action items in progress:
Make initial end index dependent on the viewportUse page size for the initial data loadInclude [data grid] TanStack Query integration demos #14227(will be handled separately)Changelog