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
For any particular tagged template literal expression, the tag function will always be called with the exact same literal array, no matter how many times the literal is evaluated.
In the source code, compare() returns true. But in output it returns false because Livepack does not understand the link between tokens and the template literal in runTag().
From MDN:
Input:
In the source code,
compare()
returnstrue
. But in output it returnsfalse
because Livepack does not understand the link betweentokens
and the template literal inrunTag()
.Output:
This would be annoying to solve.
Instrumentation would need to replace the
tag
function with a wrapper which records:raw
property of the tokens arrayIf the tokens array/raw tokens array and the function are both included in output, it'd need to rewrite the
runTag
function as:The text was updated successfully, but these errors were encountered: