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)
function computed
computed<T>(computation: () => T): ReadonlySignal<T>

Creates a read-only computed signal based on the values of other signals

The computed value is updated when a tracked dependency changes

Type Parameters

Parameters

computation: () => T

The callback function doing the computation

Return Type

ReadonlySignal<T>

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 { computed } from "@radish/runtime";
or

Import directly with a jsr specifier

import { computed } 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 { computed } 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 { computed } from "@radish/runtime";

Add Package

vlt install jsr:@radish/runtime

Import symbol

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

Add Package

npx jsr add @radish/runtime

Import symbol

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

Add Package

bunx jsr add @radish/runtime

Import symbol

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