get-focus / deprecated-focus-graph

Tools based on Redux to easily integrate forms, validate and manipulate data.
http://getfocus.io/focus-documentation/
MIT License
4 stars 3 forks source link

Global error and focus form #156

Closed jordanbenzacken closed 7 years ago

jordanbenzacken commented 7 years ago

With a focus form V3, after a save, when the server return a globalError like this :

res.status(422).send({globalErrors: ["code already assigned"]});

The behaviour is ok (red toast appears) but the form stay at [saving:true] because redux didn't dispatch on the node (which is logical)

What wood be the good way to implement this ?

TomGallon commented 7 years ago

@jordanbenzacken for me the saving value should be dispatched to false after an error