@theohagos/recoil-observer
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

recoil-observer

Recoil Observer through Redux DevTools

Installation

yarn add @theohagos/recoil-observer

or

npm install @theohagos/recoil-observer

Usage

import App from './App.tsx';
import { RecoilRoot } from 'recoil';
import { RecoilObserver } from '@theohagos/recoil-observer';

<RecoilRoot>
    <RecoilObserver />
    <App />
</RecoilRoot>

API

props description default value type
exclude List of recoil keys to exclude from Redux Devtool [] string[]
name The name that will appear on Redux Devtool Recoil State Observer string
maxAge Redux Devtool prop 100 number
trace Redux Devtool prop false boolean

Redux Devtool View

Open up redux devtools and observe state changes in redux devtools, replay recoil state as well as time-travel

Screen Shot 2021-12-17 at 23 18 52

Install

npm i @theohagos/recoil-observer

DownloadsWeekly Downloads

2

Version

1.0.8

License

MIT

Unpacked Size

83 kB

Total Files

19

Last publish

Collaborators

  • theohagos