Skip to content

Commit

Permalink
Don’t pass UserMeta generic to Client in createLiveblocksContext (
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbouchenoire committed Mar 20, 2024
1 parent 7ddb96d commit f9b38b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -16,6 +16,8 @@
`undefined` will now be treated as an error.
- Fix bug where `useUser` and `useRoomInfo` returned an extra `data` superfluous
property.
- Fix bug where customizing types on `createLiveblocksContext` would conflict
with the provided `Client`.

### `@liveblocks/react-comments`

Expand Down
2 changes: 1 addition & 1 deletion packages/liveblocks-react/src/liveblocks.tsx
Expand Up @@ -57,7 +57,7 @@ export const INBOX_NOTIFICATIONS_QUERY = "INBOX_NOTIFICATIONS";
export function createLiveblocksContext<
TUserMeta extends BaseUserMeta = BaseUserMeta,
TThreadMetadata extends BaseMetadata = never,
>(client: Client<TUserMeta>): LiveblocksContextBundle<TUserMeta> {
>(client: Client): LiveblocksContextBundle<TUserMeta> {
const shared = createSharedContext<TUserMeta>(client);

const store = client[kInternal]
Expand Down

0 comments on commit f9b38b3

Please sign in to comment.