-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Лишний рендер для isPending #25
Comments
В синхронном режиме изменения не схлопываются, |
А там транзакцию внутри нельзя влепить? Или подскажи где ее тут влепить. По-логике все-таки это лишний рендер. |
просто обернуть второй |
let b = new cellx.Cell((push, fail, old) => {
setTimeout(() => {
cellx.transact(() => {
push(3)
})
}, 500)
return old || 2
}) Да, так работает, но как-то это не очевидно, видимо из-за неявной установки isPending перед pull. |
В примере ниже лишний: "c.subscribe: isPending: true, err: null, val: 5", т.к. данные сфетчились и записались, а потом еще отдельно isPending в false переключили
http://jsbin.com/padehafano/edit?js,console
The text was updated successfully, but these errors were encountered: