Open drewverlee opened 2 years ago
It can only be called inside of a rule. What i meant is that the threaded insert
calls you make can run outside of a rule too, so you could put them in a function and run them in either place. If you use insert!
instead, those calls will not work outside of a rule.
The docs seem to suggest you can use reset! outside the rules block.
Which seems to disagree with the helpful exception:
Can you give an example of something that runs inside and outside the rule code block.