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

observer overwriting form value #535

Closed stukennedy closed 4 years ago

stukennedy commented 4 years ago
const observers = {
    category: [
      {
        key: 'value',
        call: ({ change }) => {
          console.log(change.newValue);
        },
      },
    ],
  };
  return new MobxReactForm({ fields, observers }, { plugins, hooks });

When I use an observer it seems to empty the form value, should I be returning something from this function?