import { devtools } from "https://deno.land/x/valtio@v2.1.1/src/vanilla/utils.ts";
devtools
This is to connect with Redux DevTools Extension. Limitation: Only plain objects/values are supported.
Examples
import { devtools } from 'valtio/utils'
const state = proxy({ count: 0, text: 'hello' })
const unsub = devtools(state, { name: 'state name', enabled: true })
import { devtools } from 'valtio/utils' const state = proxy({ count: 0, text: 'hello' }) const unsub = devtools(state, { name: 'state name', enabled: true })
Parameters
proxyObject: T