foxhound87 / mobx-react-form

Reactive MobX Form State Management
https://foxhound87.github.io/mobx-react-form
MIT License
1.09k stars 129 forks source link

Assignable hooks temporarily breaks hook execution #632

Closed cmolenda closed 7 months ago

cmolenda commented 7 months ago

Introduced in v6.4.0, the Object.assigns(hooks) can break hook execution in certain circumstances. This may also apply to handlers.

Steps to reproduce

  1. create a new class which extends Form
  2. create a hooks() method that returns a hook which is a method property of the form
  3. Trigger an immediate instantiation and submission of the form; E.g. in an onClick handler.

Expected behavior

Actual behavior

github-actions[bot] commented 7 months ago

:tada: This issue has been resolved in version 6.7.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: