Extra query keys for functions for invalidation
Is it possible to easily provide extra query hashes for functions?
For example, lets say i have a procedure
GetCurrentState()
With no input.
Before when i used raw react query, i could do
UseQuery({ queryKey: ["currentState", dependency] })
To easily add dependencies to the query key function even if the fetch itself may not need it.
How would i do this? I think modifying queryHashFn option or adding arbitrary input to procedure is hacky
0 Replies