• /
  • EnglishEspañolFrançais日本語한국어Português
  • Se connecterDémarrer

Cette traduction automatique est fournie pour votre commodité.

En cas d'incohérence entre la version anglaise et la version traduite, la version anglaise prévaudra. Veuillez visiter cette page pour plus d'informations.

Créer un problème

end (API SPA)

Syntaxe

newrelic.interaction().end()

Met fin à l'interaction SPA à l'heure actuelle.

Exigences

Description

Cette méthode SPA mettra fin à l’interaction du navigateur à l’heure actuelle. Tout rappel ou requests ultérieure ne sera pas inclus dans le cadre de l'interaction SPA.

Valeurs de retour

Cette méthode renvoie le même objet API créé par interaction().

Exemples

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
});
});
Droits d'auteur © 2025 New Relic Inc.

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