ampproject / ampproject/amp-react-prototype

AMP Context and service propagation

Open
#49 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.