@tanstack/query-core interface pollution #1061
kevin-dp(GitHub profile, opens in a new tab) added labelshelp wanted
kevin-dp(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
kevin-dp(GitHub profile, opens in a new tab) added labelshelp wanted
kevin-dp(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Hi @Nick-Motion,
This is indeed an annoying problem. Unfortunately, i don't know of any other way to type tanstack Query's "meta" property. We basically based ourselves of this thread https://github.com/TanStack/query/discussions/2772. The problem with this is that it applies to all occurences. So either the Tanstack/db meta property will be wrong, or the non-ts/db related uses will be wrong. Really annoying!
Tbh, i don't understand why Tanstack query is not parametric in the type of the Meta property, that would solve these problems.