Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

DevtoolsActivity

interfaz

Metadatos de navegación o carga; no contienen URLs, parámetros, cabeceras ni valores del usuario. route es el patrón declarado de la ruta, no su pathname resuelto.

ts
import type { DevtoolsActivity } from "@meekojs/meeko";

Source code src/core/devtools-protocol.ts:216

Declaración #

ts
interface DevtoolsActivity {
	operationId: number
	route: string | null
	phase: 'start' | 'ready' | 'commit' | 'cancel' | 'error'
	durationMs?: number
	source?: 'server' | 'client' | 'static' | 'cache'
}

Example #

ts
const activity = window.__MEEKO_DEVTOOLS__?.snapshot().events.find((event) => event.kind === "navigation")?.activity;
console.log(activity?.phase, activity?.durationMs);

Propiedades #

operationId #

propiedad

operationId: number

Identidad de la operación, compartida entre su inicio y final.

route #

propiedad

route: string | null

Patrón de ruta del manifiesto, o null para operaciones sin ruta conocida.

phase #

propiedad

phase: 'start' | 'ready' | 'commit' | 'cancel' | 'error'

Fase de la operación.

durationMs #

propiedad opcional

durationMs?: number

Duración medida en el navegador, presente al finalizar la operación.

source #

propiedad opcional

source?: 'server' | 'client' | 'static' | 'cache'

Transporte de datos o uso de la caché local de recursos.

See also #

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/core/devtools-protocol.ts