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
If I write let square; before the reactive statement it works as expected.
The text was updated successfully, but these errors were encountered:
EmilTholin
changed the title
Functions using reactive variables are hoisted outside of the instace
Functions using reactive variables are hoisted outside of the instance
May 5, 2019
The following piece of code throws
VM47:312 Uncaught ReferenceError: square is not defined
when clicking the button (REPL).It looks like the
onClick
function is being hoisted outside theinstance
function even though it usessquare
.If I write
let square;
before the reactive statement it works as expected.The text was updated successfully, but these errors were encountered: