optim, prevent unecessary rendering when updating document synchronously