monocle-ts
monocle-ts copied to clipboard
Lens set
Lens set as modify without a callback.
case 'reinitialize':
return pipe(
state,
pipe(
lens.id<typeof state>(),
lens.prop('reinitialize'),
// lens.set(true),
lens.modify(() => true),
),
);
Also, lens.from(state)
would be handy. Or am I doing it wrong?