Ability to clone query/filter builders #37429
Unanswered
EskiMojo14
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'd like to do something like the below (I'm actually using RTKQ, but this example will use Tanstack Query for brevity):
But from what I can tell, this would be unsafe as the filter methods mutate the original instance.
If builders had a clone method, it would be possible to explicitly avoid mutating the original:
Open to other suggestions :)
All reactions