@@ -9,7 +9,7 @@ type QueryParams<S extends Entity.AnyNoContext> = {
99 filter ?: { [ K in keyof Schema . Schema . Type < S > ] ?: Entity . EntityFieldFilter < Schema . Schema . Type < S > [ K ] > } | undefined ;
1010 // TODO: for multi-level nesting it should only allow the allowed properties instead of Record<string, Record<string, never>>
1111 include ?: { [ K in keyof Schema . Schema . Type < S > ] ?: Record < string , Record < string , never > > } | undefined ;
12- space ?: string ;
12+ space ?: string | undefined ;
1313 first ?: number | undefined ;
1414} ;
1515
@@ -146,7 +146,7 @@ const preparePublishDummy = () => undefined;
146146
147147export function useQuery < const S extends Entity . AnyNoContext > ( type : S , params : QueryParams < S > ) {
148148 const { mode, filter, include, space, first } = params ;
149- const publicResult = useQueryPublic ( type , { enabled : mode === 'public' , include, first } ) ;
149+ const publicResult = useQueryPublic ( type , { enabled : mode === 'public' , include, first, space } ) ;
150150 const localResult = useQueryLocal ( type , { enabled : mode === 'private' , filter, include, space } ) ;
151151 // const mapping = useSelector(store, (state) => state.context.mapping);
152152 // const generateUpdateOps = useGenerateUpdateOps(type, mode === 'merged');
0 commit comments