T
TanStack2y ago
other-emerald

TS error:

Argument type UseQueryOptions<T, Register extends {defaultError: infer TError} ? TError : Error, T, string[]> & {initialData?: undefined} & {queryKey: DataTag<string[], T>} is not assignable to parameter type FetchQueryOptions<[T][T extends any ? 0 : never] & T, Register extends {defaultError: infer TError} ? TError : Error, T, QueryKey> I would not know what are details are necessary but it seems like lightsListQueryOptions does not implement correctly FetchQueryOptions
No description
No description
No description
5 Replies
other-emerald
other-emeraldOP2y ago
React Router Basic React Query File Based. Example | TanStack Route...
An example showing how to implement Basic React Query File Based. in React Router
solid-orange
solid-orange2y ago
please create a typescript playground
other-emerald
other-emeraldOP2y ago
https://stackblitz.com/edit/vitejs-vite-vkaept?file=package.json my editor highlights different problems to stackblitz editor. running tsc also highlight different problems, being tsconfig the same nonetheless code works fine after all but was curious too understand the type issue my editor raises
other-emerald
other-emeraldOP2y ago
should I just ignore my editor's errors? I am using webstorm

Did you find this page helpful?