What’s new in Liveblocks: October edition
We’ve released pagination for Comments & Notifications, a way to revalidate user & room data, added further support for attachments, and are now offering new discounts for startups.
This October we’ve added much requested features, and offer new discounts.
- Pagination for threads & notifications - Enabling “Load more” & a quicker start.
- Revalidate user & room data - Update info, such as avatars, without refreshing.
- Expanded attachments support - Now part of our dashboard & Figma kit.
- Discounts for startups & nonprofits - We’ll help you grow your company.
Upgrade now
To use the latest features, update your packages with the following command.
If you were previously on Liveblocks 2.8 or below, make sure to follow our upgrade guides before updating.
Pagination for threads & notifications
We’ve added pagination when fetching threads and inbox notifications in React, making it easy to add a “Load more” button when building your application. This is the new default behavior, and can make initial load times quicker, as only 50 threads/notifications are loaded at once.
In the code, this change applies to
useThreads
and
useInboxNotifications
,
and pagination works in the same way for both.
To learn more and upgrade your app, make sure to read our pagination upgrade guide.
Revalidate user & room data
In our React components, it’s now possible to revalidate user, mention, and room data without refreshing this page. This is helpful in a number of ways—for example if a user changes their avatar, you can tell Liveblocks to revalidate its user cache, and you’ll see the new avatar in Comments.
We’ve introduced three new functions for this, allowing you to:
- Refresh user info, e.g. names and avatars in comments.
- Refresh room info, e.g. room names and URLs in notifications.
- Refresh mention suggestions,
e.g. the list when typing
@
in a comment.
When using React, you can retrieve client
with
useClient
. Learn more under
resolver methods in our docs.
Expanded attachments support
Recently we introduced attachments for Comments, allowing you to upload media and files to individual comments. We’ve expanded support for this into other parts of our product, for example you can now see attachments in the dashboard and in our Figma collaboration kit
Discounts for startups & nonprofits
We now offer pre-negotiated discounts for startups and nonprofits, helping you to build and grow your company.
Apply and learn more on our new startups page.
Upgrade now
To use the latest features, update your packages with the following command.
If you were previously on Liveblocks 2.8 or below, make sure to follow our upgrade guides before updating.
Contributors
9 authors