Thanks for the link. It works fine with the . uncurrying, but I’m not able to make it work with the @uncurry decorator.
This works: external useUpdateAtom: (t<'value, 'setValue>, . 'value) => unit = "useUpdateAtom"
But this doesn’t: external useUpdateAtom: (t<'value, 'setValue>, @uncurry 'value) => unit = "useUpdateAtom"
It throws an error: Cannot infer the arity through the syntax, either [%@uncurry n] or write it in arrow syntax
Well it’s not a big issue, just trying to understand bindings and currying.
Thanks for the link; I did see and star the project. But it turned out to be a little too complex for my understanding of bindings and ReScript when we needed Jotai. So I decided to build our own simpler bindings, mainly to get some exercise writing them. And we also use a couple of Jotai utils which aren’t covered by those bindings yet.
But you bring up a good point. I should consider contributing our util bindings to that project!