Skip to content

Commit 6b33427

Browse files
committed
add changeset
1 parent cc14f3c commit 6b33427

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.changeset/shaky-guests-report.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@graphprotocol/hypergraph-react": patch
3+
"@graphprotocol/hypergraph": patch
4+
---
5+
6+
Add a logInvalidResults toggle to `Entity.findOnePublic/findManyPublic`, plus pass-through support in the React provider and hooks, so apps can selectively silence or surface schema-validation warnings while still receiving the invalid payload lists.
7+

packages/hypergraph-react/src/internal/use-entity-public.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const useEntityPublic = <S extends Schema.Schema.AnyNoContext>(type: S, p
2424
);
2525

2626
const result = useQueryTanstack({
27-
queryKey: ['hypergraph-public-entity', id, typeIds, space, include, logInvalidResults],
27+
queryKey: ['hypergraph-public-entity', id, typeIds, space, include],
2828
queryFn: async () => {
2929
return Entity.findOnePublic(type, {
3030
id,

0 commit comments

Comments
 (0)