StrictNullCheck and dependant queries
I am working with typescript strict mode, and I am not sure what would be an elegant solution to handle dependant queries.
I have typesafe abstracted queries that require data to be set:
- useGetDetails
- useGetBillingInfoById requires
pathParams.location_group_id to be a stringHere is an example:
(1) Making weird condition that satisfy typesafety
(2) Have optional types on
useGetBillingInfoById for the property pathParams.location_group_id(3) Define initialData, but usually I have to define the whole data
(4) ?
Thank a lot ! :))