@liveblocks/client
Advanced tools
Changelog
2.9.0
We are introducing pagination support to allow apps using threads and inbox notifications to be built in a more user-friendly way, where the initial load is faster and more data can be fetched incrementally as users interact with the app.
@liveblocks/react
Add pagination support to useInboxNotifications()
const {
inboxNotifications,
isLoading,
error,
// ✨ New in Liveblocks 2.9
fetchMore,
isFetchingMore,
hasFetchedAll,
fetchMoreError,
} = useInboxNotifications();
Add pagination support to useThreads()
and useUserThreads_experimental()
const {
threads,
isLoading,
error,
// ✨ New in Liveblocks 2.9
fetchMore,
isFetchingMore,
hasFetchedAll,
fetchMoreError,
} = useThreads({ query });
Changelog
2.8.2
@liveblocks/client
Changelog
2.8.1
@liveblocks/react-ui
onComposerSubmit
on Thread
to react to the inner composer of a
thread.Changelog
2.8.0
We are introducing attachments to allow users to add files to their comments, for more information about this change please read our Upgrade Guide for 2.8.
@liveblocks/react-ui
Composer.AttachmentsDropArea
: Receives files via drag-and-dropComposer.AttachFiles
: Opens a file pickerFileSize
: Displays a formatted file sizeuseComposer
to support attachments in custom
components.@liveblocks/react
useAttachmentUrl
hook to get presigned URLs for attachments.@liveblocks/client
prepareAttachment
and uploadAttachment
methods to Room
to create
attachments.getAttachmentUrl
method to Room
to get presigned URLs for attachments.