From bd2c569667a7ff4ded593f41a64f46cf52cb60c2 Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Thu, 3 Jul 2025 23:28:40 +0200 Subject: [PATCH] fix: disable subscribing to a public space --- packages/hypergraph-react/src/HypergraphSpaceContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hypergraph-react/src/HypergraphSpaceContext.tsx b/packages/hypergraph-react/src/HypergraphSpaceContext.tsx index 1442edb4..33961945 100644 --- a/packages/hypergraph-react/src/HypergraphSpaceContext.tsx +++ b/packages/hypergraph-react/src/HypergraphSpaceContext.tsx @@ -146,7 +146,7 @@ export function useQueryLocal(type: S, para getEntities: () => entitiesRef.current, }); const { space: spaceFromContext } = useHypergraphSpaceInternal(); - const handle = useSubscribeToSpaceAndGetHandle({ spaceId: spaceFromParams ?? spaceFromContext, enabled: true }); + const handle = useSubscribeToSpaceAndGetHandle({ spaceId: spaceFromParams ?? spaceFromContext, enabled }); const handleIsReady = handle ? handle.isReady() : false; // biome-ignore lint/correctness/useExhaustiveDependencies: allow to change filter and include