effector-devtools
    TypeScript icon, indicating that this package has built-in type declarations

    22.2.0 • Public • Published

    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();

    Keywords

    none

    Install

    npm i effector-devtools

    DownloadsWeekly Downloads

    0

    Version

    22.2.0

    License

    none

    Unpacked Size

    94.3 kB

    Total Files

    12

    Last publish

    Collaborators

    • kobzarvs