ampproject / amp-react-prototype

A scratch pad to experiment with React rendered AMP Components
Apache License 2.0
36 stars 9 forks source link

AMP Context state propagation #48

Open dvoytenko opened 4 years ago

dvoytenko commented 4 years ago

We can use AmpContext for all state properties such as renderable and playable. The main question is whether we breakdown the context per property or keep all the properties together. Breaking down per property means a lot of contexts, but also means fewer component updates.