Advanced / Store Advanced

snapshot

Returns the plain, unwrapped view of a store value without tracking, for serialization or for passing to code that must not observe the store. Subtrees with no pending changes are returned as-is rather than copied.


Import

import { snapshot } from "solid-js";

Type signature

function snapshot<T>(value: T): T;

Parameters

value

  • Type: T

Learn more

Last updated: 9/10/26, 10:47 PMEdit this pageReport an issue with this page