Skip to main content
Home
This release is 1 version behind 0.5.0 — the latest version of @radish/runtime. Jump to latest

Built and signed on GitHub Actions

The Radish runtime

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
82%
Published
2 weeks ago (0.4.2)
class HandlerRegistry

A Scoped Handler Registry implements the logic for handling effect requests.

Extend this class by adding new methods in your subclass to implement your own effect handlers

Constructors

new
HandlerRegistry()

Index Signatures

[key: string] : any

Properties

References the handler's AbortController.

The abort method of the controller is called in the disconnectedCallback method. It allows to cleanup event handlers and other abortable operations

Methods

effect(callback: EffectCallback): void

Creates an effect that is automatically cleaned up when the component is disconnected

An optional AbortSignal can be provided to abort the effect prematurely

hydrate(node?: Node): void
hydrateElement(element: Element): void
lookup(identifier: string): any

Looks up an identifier on the instance

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@radish/runtime

Import symbol

import { HandlerRegistry } from "@radish/runtime";
or

Import directly with a jsr specifier

import { HandlerRegistry } from "jsr:@radish/runtime";

Add Package

pnpm i jsr:@radish/runtime
or (using pnpm 10.8 or older)
pnpm dlx jsr add @radish/runtime

Import symbol

import { HandlerRegistry } from "@radish/runtime";

Add Package

yarn add jsr:@radish/runtime
or (using Yarn 4.8 or older)
yarn dlx jsr add @radish/runtime

Import symbol

import { HandlerRegistry } from "@radish/runtime";

Add Package

vlt install jsr:@radish/runtime

Import symbol

import { HandlerRegistry } from "@radish/runtime";

Add Package

npx jsr add @radish/runtime

Import symbol

import { HandlerRegistry } from "@radish/runtime";

Add Package

bunx jsr add @radish/runtime

Import symbol

import { HandlerRegistry } from "@radish/runtime";