Closed lukesmurray closed 2 years ago
Could you provide a use case?
Also, you should be able to achieve array support with createLens
function, although, as noted in your your PR, it has a problem with types. I will fix that.
See my comment here https://github.com/dhmk083/dhmk-zustand-lens/pull/10#issuecomment-1137143358.
In summary, I don't think there is a strong use case and I ended up taking an alternative approach.
At the moment lenses only work for plain objects. I would love to extend this library to support arrays as well.