There is initialData in config, but it's not covered with TS
I'd be happy to approve a PR for that 馃槂
Fixed in https://github.com/DefinitelyTyped/DefinitelyTyped/pull/41208.
This issue can be now closed
Hey guys not sure if this was already solved and is going to be released soon.
initialData is typed however the result of useQuery's data is mark as (T | undefined) when it should not be undefined anymore since it was initialised.
Most helpful comment
I'd be happy to approve a PR for that 馃槂