• EnglishEspañol日本語한국어Português
  • ログイン今すぐ開始

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株式会社。

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