Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

💊 Valtio makes proxy-state simple for React and Vanilla
Go to Latest
function devtools
import { devtools } from "https://deno.land/x/valtio@v2.0.0-beta.3/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