monocle-ts icon indicating copy to clipboard operation
monocle-ts copied to clipboard

Lens set

Open steida opened this issue 3 years ago • 1 comments

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),
    ),
  );

steida avatar May 27 '21 19:05 steida

Also, lens.from(state) would be handy. Or am I doing it wrong?

steida avatar May 27 '21 19:05 steida