Replies: 2 comments 1 reply
-
|
Oh, what?? I was going to reply and say something like "You can already do this" and link to the source code, but it turns out you can't yet. Want to make a PR to enable this? :) |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
So this is what I came up with: #244. Appreciate any suggestions and guidance :) |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hey all,
First of all, amazing job with tan-stack form and store. We are very glad we decided to use them!
One little thing we find that we are lacking is an option to specify our own comparator function. Maybe something similar to what zustand does with
createWithEqualityFunction(https://zustand.docs.pmnd.rs/apis/create-with-equality-fn).In our particular case, we have a very nested form, where we have fields that are array of objects, and some also containing props with array of objects. Being able to pass a comparator function would allow us to, for example, pass a
deepEqualfunction where it makes sense.I do agree that having a shallow comparison by default makes sense, but being able to define something else when needed would be awesome.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions