Fix a race when a leaf update is missed
Summary: If multiple leaves are updated at the same time (or a new observer is created concurrently that depends on the updated leaf) it's possible for refresh to be called concurrently with force=false which will not update the leaf value, but also ignore the refresh with force=true. This is fixed by making force to be the property of the leaf observer itself, which is set when the version is bumped. Reviewed By: yfeldblum Differential Revision: D14222400 fbshipit-source-id: 657c2c273002f576dbe48a232eaef2d530cea07d
Showing
Please register or sign in to comment