22.2.0 • Published 2 years ago

effector-devtools v22.2.0

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

effector-devtools

Demo

demo

Getting started

yarn add effector-devtools
import { createEvent, restore } from 'effector';
import { inspect } from 'effector-devtools';

export const change = createEvent<string>();
export const $store = restore(change, '');

export const resetInput = createEvent();

$store.reset(resetInput);

// add instance #1 to redux dev tools 
const removeInstance1 = inspect({
  change,
  resetInput,
  $store,
}, 'Profile #1');

// add instance #2 to redux dev tools 
const removeInstance2 = inspect({
  events: {
    change,
    resetInput,
  },
  state: {
    input: $store,
  }
}, 'Profile #2');

// removeInstance1();
// removeInstance2();
22.2.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago