Closed compulim closed 9 years ago
You can set actions to not defer with e.g. Reflux.createAction({sync: true});
Can we set {sync: true}
on a per action basis? Like,
Reflux.createActions({
changeText: { sync: true }
})
@compulim I have the same request.
@compulim Yes, you should be able since 0.2.12. See also #391.
Note to self: I'll have to rewrite the README/docs to make this more clearer.
Thanks for clarification.
Tested on Chrome/Edge on Windows 10, Chrome on Mac, and Mobile Safari on iOS. It fail on all of them.
On iOS, it also fail with handwriting-based IME.
This is probably because Reflux action trigger is async (
setTimeout
/nextTick
).Code used to setup the page: