Skip to content

Commit a96c367

Browse files
authored
fix: disable subscribing to a public space (#310)
1 parent 99777de commit a96c367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)