Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX beta] Fix template-only components clearing #17846

Merged
merged 2 commits into from
Apr 3, 2019

Conversation

chancancode
Copy link
Member

The root cause is when the createInstance flag is disabled, Glimmer omits the DidRenderLayout opcode, which has the unintended consequence of skipping the popBlock call, causing an imbalance in the stack. This means additional content unrelated to the component will be treated as part of the component's bounds, causing other errors later on. It also causes other issues such as blocks not getting finalized due to the unbalanced push and pops.

@chancancode
Copy link
Member Author

Not all the tests failed as intended because of #17847

The root cause is when the `createInstance` flag is disabled, Glimmer
omits the `DidRenderLayout` opcode, which has the unintended consequence
of skipping the `popBlock` call, causing an imbalance in the stack. This
means additional content unrelated to the component will be treated as
part of the component's bounds, causing other errors later on. It also
causes other issues such as blocks not getting finalized due to the
unbalanced push and pops.
Looks like it really _needs_ to be true for input and root anyway.
@chancancode chancancode changed the title Failing test for template-only components clearing [BUGFIX beta] Fix template-only components clearing Apr 3, 2019
@rwjblue
Copy link
Member

rwjblue commented Apr 3, 2019

Can you also create an issue for the underlying problem over in glimmer-vm?

@chancancode
Copy link
Member Author

@rwjblue I'm going to get that fixed today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants