You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unless I'm missing something, L.get behaves differently from Lodash's _.get (and from an equivalent implementation in Ramda) in this minimal example (using @apollo/react-hooks): https://codesandbox.io/s/thirsty-einstein-frv16
Unfortunately, at the moment, Partial Lenses does not support them. That is because naked objects are not instances of objects (specifically Object.create(null) instanceof Object is false), which is the test that Partial Lenses currently uses to test for object like thing. Support for naked objects has been on the list for some time now #127.
Initially Partial Lenses actually required that objects must have Object as the constructor. The reasoning behind that is that I wanted optics to work on plain / pure data and avoid dealing with any sort of object-oriented style objects. Of course, it is very common to have custom constructors even for essentially plain data objects so that requirement had to be relaxed. Unfortunately at that point I didn't know about the possibility of naked objects.
Unless I'm missing something,
L.get
behaves differently from Lodash's_.get
(and from an equivalent implementation in Ramda) in this minimal example (using@apollo/react-hooks
): https://codesandbox.io/s/thirsty-einstein-frv16The text was updated successfully, but these errors were encountered: