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
...
import * as L from "partial.lenses";
import * as _ from "lodash/fp";
...
function App() {
const { data } = useQuery(EXAMPLE, { client });
return (
<div className="App">
<div>
<h2>This works</h2>
<Pre>{_.get(["continents"])(data)}</Pre>
</div>
<div>
<h2>This doesn't work</h2>
<Pre>{L.get(["continents"])(data)}</Pre>
</div>
</div>
);
}
Unless I'm missing something,
L.getbehaves 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