• EnglishEspañol日本語한국어Português
  • Inicia sesiónComenzar ahora

Te ofrecemos esta traducción automática para facilitar la lectura.

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

Crea una propuesta

end (SPA API)

Sintaxis

newrelic.interaction().end()

Finaliza la interacción SPA en el momento actual.

Requisitos

Descripción

Este método SPA finalizará la interacción browser en el momento actual. Cualquier devolución de llamada o solicitud posterior no se incluirá como parte de la interacción del SPA.

Valores de retorno

Este método devuelve el mismo objeto API creado por interaction().

Ejemplos

router.addRoute('/profile', () => {
startSlowBackgroundAjax(); // Start work that will continue past the end of the interaction
renderProfileComponents().then(() => { // Do work that is part of the interaction
newrelic.interaction().end(); // End the interaction once the important components an the page have finished rendering
});
});
Copyright © 2024 New Relic Inc.

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