galhavivi / cofi

JavaScript Form Solutions
https://galhavivi.github.io/cofi
Other
2 stars 1 forks source link

about processQueue #5

Closed WangLarry closed 2 years ago

WangLarry commented 2 years ago

Describe the bug In processQueue function, after running the action and wait for it and its side effects to end, call 'runAfterHooks' function. In runAfterHooks function, it may be store model data including processing and pendingActions fields. If restore from this stored data, Form will inited from processing=true and pendingActions.length != 0 status.

To Reproduce In react-editor program, watch the localstore in browser. You will see the data with 'processing=true' and pendingActions is not empty.

WangLarry commented 2 years ago

createModel handle it