A note for added clarity
This commit is contained in:
parent
d0d3a348c7
commit
8650b1687b
@ -101,6 +101,7 @@ inViewport(true); // showDialog marked as dirty but does not recompute its store
|
||||
shouldShow(true); // showDialog is already marked as dirty. Nothing else happens.
|
||||
showDialog(); // showDialog recomputes its stored result and unsets the dirty flag.
|
||||
|
||||
// adding a subscription will change showDialog's internal behavior
|
||||
showDialog.subscribe(console.log.bind(console));
|
||||
|
||||
inViewport(false); // showDialog result recomputed and `false` is written to the console.
|
||||
|
||||
Reference in New Issue
Block a user