-
-
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 <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
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 <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>
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