Definitelytyped: [@types/react-query] initialData not typed

Created on 21 Dec 2019  ·  3Comments  ·  Source: DefinitelyTyped/DefinitelyTyped

There is initialData in config, but it's not covered with TS

  • Authors: @lukaszfiszer , @JaceHensley

Most helpful comment

I'd be happy to approve a PR for that 😃

All 3 comments

I'd be happy to approve a PR for that 😃

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.

Was this page helpful?
0 / 5 - 0 ratings