diff --git a/.changeset/hot-moons-invent.md b/.changeset/hot-moons-invent.md new file mode 100644 index 000000000..2d543332b --- /dev/null +++ b/.changeset/hot-moons-invent.md @@ -0,0 +1,7 @@ +--- +"@evolu/common-react": patch +--- + +Remove conditional queryCallback + +Conditional useQuery callback wasn't documented, and it's an antipattern. With Kysely Relations, it's possible to nest related rows in queries now. diff --git a/packages/evolu-common-react/src/React.ts b/packages/evolu-common-react/src/React.ts index fe460635e..dc03c0d79 100644 --- a/packages/evolu-common-react/src/React.ts +++ b/packages/evolu-common-react/src/React.ts @@ -12,7 +12,6 @@ import { FilterMap, FlushSync, NanoId, - OrNullOrFalse, Owner, OwnerActions, Platform, @@ -157,7 +156,7 @@ type UseQuery = < QueryRow extends Row, FilterMapRow extends Row, >( - queryCallback: OrNullOrFalse>, + queryCallback: QueryCallback, filterMap: FilterMap, ) => { /**