Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valtio/src/vanilla/utils/devtools.ts>devtools

🧙 Valtio makes proxy-state simple for React and Vanilla
Latest
function devtools
import { devtools } from "https://deno.land/x/valtio@v2.1.2/src/vanilla/utils/devtools.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 })

Type Parameters

T extends object

Parameters

proxyObject: T
optional
options: Options

Returns

(() => void) | undefined