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

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

🧙 Valtio makes proxy-state simple for React and Vanilla
Latest
function devtools
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 })

Type Parameters

T extends object

Parameters

proxyObject: T
optional
options: Options

Returns

(() => void) | undefined