Is it possible to tell DynamicBox
to not run its very first dynamic evaluation when it appears on screen, and instead, to just show its CachedValue
? Consider the following example:
a=1;
Dynamic[Pause[2];a, SynchronousUpdating -> False, CachedValue -> "1"]
The CachedValue
is first used so it displays the 1
. But it also triggers a dynamic evaluation (evidenced by 2 seconds of highlighted cell bracket).
Obviously the first evaluation is unnecessary since the developer has already provided the correct starting value in CachedValue
.
How do I prevent that very first dynamic evaluation? All subsequent dynamic updating should occur.
Dynamic[ aView]
and mutateaView
as/when I see fit. $\endgroup$a
to trigger the dynamic update? For that there is theTrackedSymbols
option. $\endgroup$