Answer the question
In order to leave comments, you need to log in
How to inform the client about the change on pages with pagination?
One record has changed in the table, how do I inform the client about this change?
As I understand the current page and the number of records displayed on it, I do not know,
since this information is stored on the client. That is, if a record changes,
I need to send an event to the client about it. According to which it send request
with selected page and pagination again but how to do it only if user
is on page with post ? If at this moment it was added, a new record and pagination moved out?
Answer the question
In order to leave comments, you need to log in
Don't send anything this is overengineering. The next time you paginate, just rebuild the paginator.
Or if you can't wait at all, display a badge with the number of new topics in the notification icon.
You decide what and how to do:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question