Skip to content

Commit bd2c569

Browse files
committed
fix: disable subscribing to a public space
1 parent 2a7d8ed commit bd2c569

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/hypergraph-react/src/HypergraphSpaceContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export function useQueryLocal<const S extends Entity.AnyNoContext>(type: S, para
146146
getEntities: () => entitiesRef.current,
147147
});
148148
const { space: spaceFromContext } = useHypergraphSpaceInternal();
149-
const handle = useSubscribeToSpaceAndGetHandle({ spaceId: spaceFromParams ?? spaceFromContext, enabled: true });
149+
const handle = useSubscribeToSpaceAndGetHandle({ spaceId: spaceFromParams ?? spaceFromContext, enabled });
150150
const handleIsReady = handle ? handle.isReady() : false;
151151

152152
// biome-ignore lint/correctness/useExhaustiveDependencies: allow to change filter and include

0 commit comments

Comments
 (0)