H
H
Hlib2019-06-21 22:40:28
React
Hlib, 2019-06-21 22:40:28

How to load data from database in chunks?

The database has a table with an unlimited number of messages. How to make react load data in chunks into redux state? In my view, new data will be loaded as soon as the user reaches the end of the scroll.
I use fetch to communicate with the backend

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-06-21
@Mysianio

Read what pagination is and implement it on the server side.
The request URL will look something like this:
There can be as many parameters as you like, including sorting, searching, and filtering.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question