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
this is going to refer to the object literal being passed as the second argument to _$createComponent() instead of the this in the render function, which is what would be expected.
Interesting because it looks like that commit was very intentional to fix a different issue. Trying to track down that issue now, but it is proving elusive.
Isn't the issue that the getters are using the current scope instead of the parent?
related ryansolid/mobx-jsx#44
curious enough, at the time I sent that issue, it only happens when you double nest a custom component, it doesn't happen if you double nest a regular div.
The issue can be seen here
The expression
this.shouldStay
heredom-expressions/packages/babel-plugin-jsx-dom-expressions/test/__dom_fixtures__/components/code.js
Line 120 in 12fb07c
should be transformed into
_self$.shouldStay
heredom-expressions/packages/babel-plugin-jsx-dom-expressions/test/__dom_fixtures__/components/output.js
Line 360 in 12fb07c
this
is going to refer to the object literal being passed as the second argument to_$createComponent()
instead of thethis
in therender
function, which is what would be expected.The bug was introduced in commit f8ea5cc
The text was updated successfully, but these errors were encountered: