We are introducing pagination to Comments and Notifications as default. You need to upgrade your app to handle this.
You can upgrade to 2.9 by downloading the latest version of each Liveblocks package you’re using. The easiest way to do that is to run the following command:
If you’re not using
useThreads
or
useInboxNotifications
there are no breaking changes for you! However, if you are using them, keep
reading.
useThreads
and
useInboxNotifications
now only fetch the latest 50 threads/notifications, and you must use
paginate to retrieve more. Previously, these two functions would fetch every
single thread/notification, but this is no longer possible.
Here’s a before and after example with
useThreads
, adding
pagination.
Here’s a before and after example with
useInboxNotifications
,
adding pagination.
Learn more about pagination under
useThreads
and
useInboxNotifications
.
We use cookies to collect data to improve your experience on our site. Read our Privacy Policy to learn more.