Skip to content

Move amp_state macro#26210

Closed
micajuine-ho wants to merge 4 commits intoampproject:masterfrom
micajuine-ho:move_amp_state
Closed

Move amp_state macro#26210
micajuine-ho wants to merge 4 commits intoampproject:masterfrom
micajuine-ho:move_amp_state

Conversation

@micajuine-ho
Copy link
Copy Markdown
Contributor

@micajuine-ho micajuine-ho commented Jan 5, 2020

Project Tracker: #26091

Moving AMP_STATE macro to amp-analytics

Edit: AMP_STATE is being used more than we realized. We will leave it as is.

@amp-owners-bot amp-owners-bot bot requested review from jridgewell and lannka January 5, 2020 22:20
@micajuine-ho micajuine-ho requested review from zhouyx and removed request for jridgewell and lannka January 5, 2020 22:22
@micajuine-ho micajuine-ho changed the title Move amp-state Move amp_state macro Jan 5, 2020
return Services.performanceFor(win).getMakeBodyVisible();
});

this.setAsync('AMP_STATE', key => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

want to confirm with @choumx that this is fine.
Do we see AMP_STATE used in other cases except analytics pings? form request maybe.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This was originally added for AoG which uses amp-state extensively. E.g. might be used for forms or other data endpoints as you suggest.

I'm not sure if it's actively used today though. We can add a dev().expectedError to find usage.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

SG, will revisit after we collect some data on its usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants