Upgrading - Upgrading to 2.9
We are introducing pagination to Comments and Notifications as default. You need to upgrade your app to handle this.
How to upgrade?
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:
All changes are for Comments & Notifications
If you’re not using
useThreads
or
useInboxNotifications
there are no breaking changes for you! However, if you are using them, keep
reading.
Pagination
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.
Threads
Here’s a before and after example with
useThreads
, adding
pagination.
Notifications
Here’s a before and after example with
useInboxNotifications
,
adding pagination.
Learn more
Learn more about pagination under
useThreads
and
useInboxNotifications
.