DEV Community

Discussion on: MobX Tips: New Api named flow (confusing name...)

 
acro5piano profile image
Kay Gosho

I lied to you before :( I didn't read it correctly.

No, I did not write enforceActions: true (nor useStrict(), old api) in my article. It's my fault, though thank you for clarification ;)

As you mentioned, both await and Promise wrap new function which change MobX's state so runInAction, otherwise MobX shows caution.