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

Reparenting sets the elements to re-render correctly. #6361

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

seanparsons
Copy link
Contributor

Problem:
When reparenting, sometimes the strategy is not invoking setElementsToRerenderCommand.

Fix:
I ran all the tests with some added instrumentation that captures any strategies that weren't including setElementsToRerenderCommand in their output commands. For any that weren't it was added.

Commit Details:

  • applyGridReparent invokes setElementsToRerenderCommand.
  • baseFlexReparentToAbsoluteStrategy invokes setElementsToRerenderCommand.

Manual Tests:
I hereby swear that:

  • I opened a hydrogen project and it loaded
  • I could navigate to various routes in Preview mode

Fixes #6260

- `applyGridReparent` invokes `setElementsToRerenderCommand`.
- `baseFlexReparentToAbsoluteStrategy` invokes `setElementsToRerenderCommand`.
@seanparsons seanparsons changed the title Reparenting sets the elements to render correctly. Reparenting sets the elements to re-render correctly. Sep 12, 2024
Copy link
Contributor

github-actions bot commented Sep 12, 2024

Try me

Copy link

relativeci bot commented Sep 12, 2024

#14210 Bundle Size — 62.62MiB (~+0.01%).

8c5fcba(current) vs 916e8b9 master#14209(baseline)

Warning

Bundle contains 70 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
#14210
     Baseline
#14209
Regression  Initial JS 45.75MiB(~+0.01%) 45.75MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 21.68% 21.66%
No change  Chunks 30 30
No change  Assets 33 33
No change  Modules 4385 4385
No change  Duplicate Modules 523 523
No change  Duplicate Code 31.65% 31.65%
No change  Packages 472 472
No change  Duplicate Packages 70 70
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#14210
     Baseline
#14209
Regression  JS 62.61MiB (~+0.01%) 62.61MiB
Improvement  HTML 11.12KiB (-0.32%) 11.16KiB

Bundle analysis reportBranch performance/reparent-elements-to...Project dashboard


Generated by RelativeCIDocumentationReport issue

@seanparsons seanparsons merged commit 31d2174 into master Sep 16, 2024
16 checks passed
@seanparsons seanparsons deleted the performance/reparent-elements-to-render branch September 16, 2024 10:50
liady pushed a commit that referenced this pull request Dec 13, 2024
)

- `applyGridReparent` invokes `setElementsToRerenderCommand`.
- `baseFlexReparentToAbsoluteStrategy` invokes
`setElementsToRerenderCommand`.
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.

Reparent to flex strategy does not set setElementsToRerenderCommand
3 participants