Skip to content

amp-list: support amp-state and amp-script for load-more#30101

Merged
samouri merged 6 commits intoampproject:masterfrom
samouri:fix-loadmore
Sep 9, 2020
Merged

amp-list: support amp-state and amp-script for load-more#30101
samouri merged 6 commits intoampproject:masterfrom
samouri:fix-loadmore

Conversation

@samouri
Copy link
Copy Markdown
Member

@samouri samouri commented Sep 2, 2020

summary
Fixes #30095

The load-more option was broken when attempting to use it with amp-script as a data source. This is because it has a separate fetch flow that didn't consider amp-script: or amp-state: URIs.

This PR combines the two fetch flows, as well as adds a new e2e test for this interaction. In a future PR we should add documentation for how these two features interact.

@google-cla google-cla bot added the cla: yes label Sep 2, 2020
@samouri samouri changed the title amp-list: support amp-state and amp-script for loadMore amp-list: support amp-state and amp-script for load-more Sep 2, 2020
@samouri samouri self-assigned this Sep 3, 2020
@samouri samouri marked this pull request as ready for review September 3, 2020 22:25
@samouri samouri merged commit 413aaeb into ampproject:master Sep 9, 2020
@samouri samouri deleted the fix-loadmore branch September 9, 2020 21:00
ed-bird pushed a commit to ed-bird/amphtml that referenced this pull request Dec 10, 2020
…30101)

* amp-list: support amp-state and amp-script for loadMore

* clean up separation between append/reg fetchlist

* undo vscode setting

* new fixture for e2e testing protocol adapters and loadmore

* lint and add todo and fix tests

* Update test-function-src.js
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.

amp-list fails to load more items when using amp-script as a data source

4 participants