Dynamic data tools
Show all the different ways of fetching fresh data:
- data fetch for amp-bind/amp-state on page load (https://github.com/ampproject/amphtml/pull/8574)
- amp-bind + amp-list (https://github.com/ampproject/amphtml/pull/10610)
- update-cache-request
- clarify batching of amp-list calls
- highlight that you can mix dynamic and cached product details
Thanks for the suggestions! Few comments:
Thanks Sebastian! I missed some of these :D
I think it might be worth it to just have a dedicated sample that organizes these different techniques by use-case. That way we can point partners to one place for guidance. Thoughts?
We could introduce a new top-level category for these sample, e.g. 'Dynamic AMP'. This way we can keep samples smaller which makes it easier to understand the code/markup.
@lswang1618 For the "update-cache-request" I don't think a sample is needed, there is no code involved and it's documented in update-cache
@lswang1618 Let me know if you have any feedback about these samples.