Top level 'this' expression
Webstorm 2019.1.1, React. After the last update I receive this message which should not appear
Reports this expressions occurring outside of object literals or constructor bodies. Such this expressions are legal JavaScript, and reference the top-level "global" JavaScript object, but are largely useless.
Please sign in to leave a comment.
Please follow https://youtrack.jetbrains.com/issue/WEB-38467 for updates
Seeing the same issue.
Same here!
To provide some more detail: I see it in the render function here:
This should not be highlighted as a top level this, because it is bound to the instance the render method is invoked on.
https://youtrack.jetbrains.com/issue/WEB-38467 is fixed in 2019.1.2