[DataGridPro] Server side data source lazy loading#13878
[DataGridPro] Server side data source lazy loading#13878arminmeh merged 121 commits intomui:masterfrom
Conversation
a16525b to
9302410
Compare
3e7e817 to
f747d05
Compare
3d0de1a to
04bff9b
Compare
MBilalShafi
left a comment
There was a problem hiding this comment.
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
cherniavskii
left a comment
There was a problem hiding this comment.
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 <bilalshafidev@gmail.com> Signed-off-by: Armin Mehinovic <4390250+arminmeh@users.noreply.github.com>
Co-authored-by: Sycamore <71297412+samuelsycamore@users.noreply.github.com> Signed-off-by: Armin Mehinovic <4390250+arminmeh@users.noreply.github.com>
c0fe72a to
96063f0
Compare
Signed-off-by: Armin Mehinovic <4390250+arminmeh@users.noreply.github.com> Co-authored-by: Kenan Yusuf <kenan.m.yusuf@gmail.com> Co-authored-by: Bilal Shafi <bilalshafidev@gmail.com> Co-authored-by: Sycamore <71297412+samuelsycamore@users.noreply.github.com>
Signed-off-by: Armin Mehinovic <4390250+arminmeh@users.noreply.github.com> Co-authored-by: Kenan Yusuf <kenan.m.yusuf@gmail.com> Co-authored-by: Bilal Shafi <bilalshafidev@gmail.com> Co-authored-by: Sycamore <71297412+samuelsycamore@users.noreply.github.com>
|
@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