-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
This happens on useQuery's initial
const {data, loading} = useQuery<HomePage>(
QUERY,
undefined,
{initial},
);
Property 'sourceMap' is optional in type 'JsonifyObject<QueryResponseInitial<HomePage>>'
but required in type 'QueryResponseInitial<HomePage>'
export declare interface QueryResponseInitial<QueryResponseResult> {
data: QueryResponseResult
sourceMap: ContentSourceMap | undefined
I believe this is because JsonifyObject
cannot accept undefined. If I remove undefined, TS is satisfied
Metadata
Metadata
Assignees
Labels
No labels