FeatureFuel
1

Ability to clone query/filter builders

Source: supabase/supabase#37429 · opened by @EskiMojo14
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 :)

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests