Create a new store with the given id from an existing proxy state.
id
import { proxy } from 'valtio';import { toStore } from '@tauri-store/valtio';const state = proxy({ counter: 0 });const foo = toStore('foo', state); Copy
import { proxy } from 'valtio';import { toStore } from '@tauri-store/valtio';const state = proxy({ counter: 0 });const foo = toStore('foo', state);
Create a new store with the given
id
from an existing proxy state.