• /
  • EnglishEspañol日本語한국어Português
  • Log inStart now

PlatformStateContext

React context to access the platform URL state.

Usage

import { PlatformStateContext } from 'nr1'

Examples

Basic

<PlatformStateContext.Consumer>
{(platformState) => <pre>{JSON.stringify(platformState, null, 4)}</pre>}
</PlatformStateContext.Consumer>

Methods

PlatformStateContext.subscribe

function (
subscriber: function

Function that will be called.

) => undefined
Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.