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.

ErrorSource

tipo

Dónde se observó un fallo del navegador: un handler on: ("event"), un effect, una limpieza, onMounted o la continuación de un setup con await ("mounted", desde 1.1), la navegación o un cliente Socket. Desde 1.3, en una aplicación montada, también una excepción no capturada ("uncaught", el evento error de window) o una promesa rechazada sin manejar ("rejection", el evento unhandledrejection) del código que no pasa por Meeko, como un setTimeout o una librería. Puede ganar miembros en un minor: un switch exhaustivo necesita rama por defecto.

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

Source code src/app/runtime/component-errors.ts:27

Declaración #

ts
type ErrorSource = 'event' | 'effect' | 'cleanup' | 'mounted' | 'navigation' | 'socket' | 'uncaught' | 'rejection'

Example #

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

function label(source: ErrorSource): string {
  switch (source) {
    case "navigation": return "No se pudo abrir la página";
    case "socket": return "Conexión perdida";
    default: return "Algo falló";
  }
}

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/app/runtime/component-errors.ts