ampproject / ampproject/amp-react-prototype
AMP Context and service propagation
Open
TBD
- Dominant language
- JavaScript
- Stars
- 36
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
This is similar to property and contexts (see #48). We could place services as a map in the `AmpContext` or we could break them down a service-per-context. We could also consider passing services via component props.
In other words, it's either:
```
```
vs
```
```
Whether or not we use a single or per-service context: this could be a significant performance optimization since only the dependent components need to be re-rendered when a service changes.
Contributor guide
Assessment
This issue has not been assessed yet.