T
tRPC

does api.myQuery.invalidate() works if the query is not made at the first place?

does api.myQuery.invalidate() works if the query is not made at the first place?

Iibrahimyaacob10/19/2023
from testing, the invalidate runs the query, but it shouldn't because there is no cache? how do i invalidate ONLY when the cache exist ?
Nnlucas10/19/2023
What’s your use case? Sounds like you’re doing something weird

Looking for more? Join the community!

T
tRPC

does api.myQuery.invalidate() works if the query is not made at the first place?

Join Server