Skip to content

DO NOT SUBMIT - temporary PR for reference #7912

Closed
aghassemi wants to merge 5 commits intoampproject:masterfrom
aghassemi:actionoverride
Closed

DO NOT SUBMIT - temporary PR for reference #7912
aghassemi wants to merge 5 commits intoampproject:masterfrom
aghassemi:actionoverride

Conversation

@aghassemi
Copy link
Copy Markdown
Contributor

A possible approach to allowing elements to override global actions. It has a race condition bug where if an element is no built yet, the global action would run instead of the override which although very rare, is not acceptable.

Possible solutions for fixing this race condition bug include:
1- Elements register name of actions they support in v0.js so we don't have to wait for them to load and get built
2- We always wait for element to be built before executing global actions, this will introduce a new delay for all global actions on amp-elements which did not exist before.

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.

1 participant