Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Lens set #165

Open
steida opened this issue May 27, 2021 · 1 comment · May be fixed by #182
Open

Lens set #165

steida opened this issue May 27, 2021 · 1 comment · May be fixed by #182

Comments

@steida
Copy link

steida commented May 27, 2021

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
Copy link
Author

steida commented May 27, 2021

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

This was referenced Mar 29, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant