You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs seem to suggest you can use reset! outside the rules block.
The session dynamic var will have the current value of the session, and reset! will update it so it has the newly-inserted value. This is nice if you want to thread a lot of calls together, or if you want to write code that works the same both inside and outside of the rule.
Which seems to disagree with the helpful exception:
You may only call `reset!` in a :then or :then-finally block
Can you give an example of something that runs inside and outside the rule code block.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: