[]previous and next page

WriteOptions

Options of writeSignal.

Options of writeSignal.

Import#

ts
import type { WriteOptions } from "@shadow-js/core/extend";

Signature#

ts
interface WriteOptions {
  /**
   * Permit the write while a memo computes, for bookkeeping signals owned by a primitive (a
   * Suspense counter, a resource's state). Turns the development `WRITE_IN_MEMO` check off for
   * this write.
   * @default false
   */
  allowInMemo?: boolean;
}

Members#

Name Type Description
allowInMemo? allowInMemo?: boolean Permit the write while a memo computes, for bookkeeping signals owned by a primitive (a Suspense counter, a resource's state). Turns the development WRITE_IN_MEMO check off for this write.