Skip to content

Commit

Permalink
Update infinite-scrolling.mdx (#117)
Browse files Browse the repository at this point in the history
I was a little confused by the wording and meaning of the first sentence, so I moved the word "that" so that it would make more sense to me. But please make sure that it's correct. I figure there was a typo and wasn't sure what you had wanted it to say, so I just took my best guess.

Also, I noticed that in other places, you referred to the virtualization feature as a singular feature, so I changed it to singular here, but feel free to change it back to what you had before.
  • Loading branch information
dmhumphrey committed Sep 23, 2022
1 parent 3c26be6 commit 100f4e8
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -19,11 +19,11 @@ import Example from '../../../examples/infinite-scrolling';

## Infinite Scrolling Example

An infinite scrolling table that is a table streams data from a remote server as the user scrolls down the table. This works great with large datasets, just like our [Virtualized Example](/docs/examples/virtualized), except here we do not fetch all of the data at once upfront. Instead, we just fetch data a little bit at a time, as it becomes necessary.
An infinite scrolling table is a table that streams data from a remote server as the user scrolls down the table. This works great with large datasets, just like our [Virtualized Example](/docs/examples/virtualized), except here we do not fetch all of the data at once upfront. Instead, we just fetch data a little bit at a time, as it becomes necessary.

Using a library like [`@tanstack/react-query`](https://tanstack.com/query/v4) makes it easy to implement an infinite scrolling table in Material React Table with the `useInfiniteQuery` hook.

Enabling the virtualization features here are actually optional, but encouraged if the table will be expected to render more than 100 rows at a time.
Enabling the virtualization feature is actually optional here but is encouraged if the table will be expected to render more than 100 rows at a time.

<Example />

Expand Down

2 comments on commit 100f4e8

@vercel
Copy link

@vercel vercel bot commented on 100f4e8 Sep 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 100f4e8 Sep 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.