/a> (when called with an <a href="/api/common/type-aliases/identity/id/"><code>Id</code></a> parameter).</p><section class="s2"><h2>Examples</h2><p>This example creates a Provider context into which a default <a href="/api/metrics/interfaces/metrics/metrics/"><code>Metrics</code></a> object is provided. A component within it then uses the <code>useMetrics</code> hook to get a reference to the <a href="/api/metrics/interfaces/metrics/metrics/"><code>Metrics</code></a> object again, without the need to have i