Skip to main content
Home
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
52%
Published
3 days ago (1.0.1)
interface StateInstance

Type Parameters

Properties

readonly
$state: Store<StateValue<T>>

The underlying Effector store

readonly
value: StateValue<T>

Current state value

readonly
set: (value: StateValue<T>) => StateValue<T>

Set new state value

readonly
update: (updater: (prev: StateValue<T>) => StateValue<T>) => void

Update state with a function

readonly
reset: () => void

Reset state to initial value

readonly
subscribe: (fn: (value: StateValue<T>) => void) => () => void

Subscribe to state changes

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:@snrraptopack/raptor-state

Import symbol

import { type StateInstance } from "@snrraptopack/raptor-state";
or

Import directly with a jsr specifier

import { type StateInstance } from "jsr:@snrraptopack/raptor-state";

Add Package

pnpm i jsr:@snrraptopack/raptor-state
or (using pnpm 10.8 or older)
pnpm dlx jsr add @snrraptopack/raptor-state

Import symbol

import { type StateInstance } from "@snrraptopack/raptor-state";

Add Package

yarn add jsr:@snrraptopack/raptor-state
or (using Yarn 4.8 or older)
yarn dlx jsr add @snrraptopack/raptor-state

Import symbol

import { type StateInstance } from "@snrraptopack/raptor-state";

Add Package

vlt install jsr:@snrraptopack/raptor-state

Import symbol

import { type StateInstance } from "@snrraptopack/raptor-state";

Add Package

npx jsr add @snrraptopack/raptor-state

Import symbol

import { type StateInstance } from "@snrraptopack/raptor-state";

Add Package

bunx jsr add @snrraptopack/raptor-state

Import symbol

import { type StateInstance } from "@snrraptopack/raptor-state";