diff --git a/client/packages/react/src/InstantReactAbstractDatabase.ts b/client/packages/react/src/InstantReactAbstractDatabase.ts index ac1f090f..a798e780 100644 --- a/client/packages/react/src/InstantReactAbstractDatabase.ts +++ b/client/packages/react/src/InstantReactAbstractDatabase.ts @@ -98,8 +98,8 @@ function usePublishTopic< const publishTopic = useCallback( (data) => { room._core._reactor.publishTopic({ - roomType: this.type, - roomId: this.id, + roomType: room.type, + roomId: room.id, topic, data, });