relay-hooks icon indicating copy to clipboard operation
relay-hooks copied to clipboard

fix(types): Pass TOperationType to usePreloadQuery's loadQuery parameter

Open nf-wbeck opened this issue 1 year ago • 0 comments

When passing a typed LoadQuery<T>, where T has variables, to usePreloadQuery the type of LoadQuery.next will conflict with the default typed LoadQuery in by usePreloadQuery. Not inferring the type of TOperationType from the parameter shape seems like an oversight.

nf-wbeck avatar Jun 03 '24 22:06 nf-wbeck