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
Help us to manage our issues by answering the following:
Describe your issue:
Hi there, I'm trying to do something which seems like it should be very straightforward. I'm attempting to pass some data to a javascript function in a riot template as below. In the Riot documentation it is stated that:
All template expressions are “just JavaScript™️”: <pre>{ JSON.stringify(props) }</pre>
So I am expecting that the below should function correctly as it is valid javascript.
The first two <p> tags are rendered correctly but with the last one I'm encountering the following error reported in Chrome dev console
Uncaught (in promise) ReferenceError: state is not defined
Please note that I am not experienced in javascript - I write python, c/c++ for my day job - so it's possible that I'm doing something which is clearly wrong... Any guidance as to the correct way to do this would be much appreciated.
Can you reproduce the issue?
Post the link using one of our bug report templates:
Help us to manage our issues by answering the following:
Hi there, I'm trying to do something which seems like it should be very straightforward. I'm attempting to pass some data to a javascript function in a riot template as below. In the Riot documentation it is stated that:
So I am expecting that the below should function correctly as it is valid javascript.
The first two
<p>
tags are rendered correctly but with the last one I'm encountering the following error reported in Chrome dev consolePlease note that I am not experienced in javascript - I write python, c/c++ for my day job - so it's possible that I'm doing something which is clearly wrong... Any guidance as to the correct way to do this would be much appreciated.
Post the link using one of our bug report templates:
On which browser/OS does the issue appear?
Ubuntu 20.04
Chromium Version 83.0.4103.61 (Official Build) snap (64-bit)
Which version of Riot does it affect?
Riot.js 4.0.5
How would you tag this issue?
The text was updated successfully, but these errors were encountered: