Skip to content

amp-layout: extract buildDOM #compiler#34770

Merged
samouri merged 1 commit intoampproject:mainfrom
samouri:intro-server-render
Jun 29, 2021
Merged

amp-layout: extract buildDOM #compiler#34770
samouri merged 1 commit intoampproject:mainfrom
samouri:intro-server-render

Conversation

@samouri
Copy link
Copy Markdown
Member

@samouri samouri commented Jun 8, 2021

summary
Extracts buildDOM from buildCallback so that it can be called separate from the rest of init (for server render).

@samouri
Copy link
Copy Markdown
Member Author

samouri commented Jun 9, 2021

Blocked on #34681. Not because this is actually blocked...but just to save Ryan the hassle of dealing with merge conflicts on that jumbo PR

@samouri samouri force-pushed the intro-server-render branch 3 times, most recently from cffafa5 to fae1950 Compare June 10, 2021 15:26
@rcebulko
Copy link
Copy Markdown
Contributor

Blocked on #34681. Not because this is actually blocked...but just to save Ryan the hassle of dealing with merge conflicts on that jumbo PR

That PR is unblocked. Thank you for saving the headache 😃

@samouri samouri force-pushed the intro-server-render branch from fae1950 to fe24971 Compare June 15, 2021 20:19
@samouri samouri self-assigned this Jun 15, 2021
@samouri samouri changed the title [WIP] amp-layout: extract buildDOM #compiler amp-layout: extract buildDOM #compiler Jun 15, 2021
@samouri samouri marked this pull request as ready for review June 15, 2021 21:11
@samouri samouri requested review from jridgewell and rcebulko June 15, 2021 21:11
Copy link
Copy Markdown
Contributor

@rcebulko rcebulko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's cool that this is so straightforward now

@samouri samouri enabled auto-merge (squash) June 15, 2021 21:44
@samouri
Copy link
Copy Markdown
Member Author

samouri commented Jun 15, 2021

@jridgewell for OWNERS approval

@samouri
Copy link
Copy Markdown
Member Author

samouri commented Jun 17, 2021

Friendly 🏓 to @jridgewell

@rcebulko
Copy link
Copy Markdown
Contributor

rcebulko commented Jun 18, 2021

@samouri isn't Justin OOO today?

Edit: nope, he said next week, it's others who are OOO

@samouri samouri merged commit 10a30ba into ampproject:main Jun 29, 2021
@samouri samouri deleted the intro-server-render branch June 29, 2021 16:58
samouri added a commit that referenced this pull request Jul 13, 2021
…Dom extraction (#35148)

* static-layout: extract getEffectiveLayout

* Revert "Revert: "amp-layout: extract buildDOM #compiler (#34770)" (#35146)"

This reverts commit f3b1875.

* amp-layout should use getEffectiveLayout

* lint

* Update src/builtins/amp-layout/amp-layout.js

Co-authored-by: Ryan Cebulko <ryan@cebulko.com>

* extract typedef for EffectiveLayout

* make wrapper func with smaller API return

* move cached return

* empty commit

Co-authored-by: Ryan Cebulko <ryan@cebulko.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants