Preview bug? Macro Tag + Refresh Policy

Stumbled on what seems to be a bug, though I don’t have access to another system to check. To reproduce:

  • Give a tiddler the tag $:/tags/Macro
  • Have the tiddler’s first line be \define tv-action-refresh-policy() always

After closing / re-opening, I can turn the preview on, but not off.

preview-bug

This is a known behaviour and is one of the reasons it is not recommended to globally set the tv-action-refresh-policy to always.

Ah, I see the warning now in the docs - sorry about that. Thanks for the quick reply.

1 Like

Note that you can still set action-refresh-policy to always within a global macro without changing the global value of the macro.

Instead of using a define pragma, use a $let widget to set the value of action-refresh-policy.