Open AdrianIssott opened 2 years ago
thank you, but I don't know how to fix this warning message .... , should I update react.js version? if you off debug mode, this message will not show.
should I update react.js version?
I don't think that will help as the warning is pointing out a problem in run_js. According to this comment there was an improvement to how the warning was triggered in react 16.13.1 which we have (since the new version of the warning string is being output).
if you off debug mode, this message will not show.
Sure but that just silences the warning. It doesn't actually solve the underlying issue.
I don't know how to fix this warning message
Here are a few examples of it being fixed in other places:
Anyhow, isn't the problem this line: https://github.com/jimmybow/visdcc/blob/master/src/components/Run_js.react.js#L10? AIUI, the solution is to make the setProps
call asynchronous in some way.
Running the https://github.com/jimmybow/visdcc/blob/master/example/Run_js/Add_event_and_callback.py example with:
Results in the following warning being output to the console:
Nothing appears to actually go wrong but as this comment says "it points out legitimate issues that are likely causing bugs in your code" so would be good to fix.