This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useStore } from 'effector-react' | |
import * as effector from 'effector' | |
import { combine } from 'effector' | |
import { pathOr } from 'ramda' | |
import React, { useLayoutEffect, useRef } from 'react' | |
import ReactDOM from 'react-dom' | |
import { chromeDark, ObjectInspector, ObjectLabel } from 'react-inspector' | |
import { throttle } from 'lodash' | |
import './effector-addon.css' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useLayoutEffect, useRef } from 'react' | |
import { useStore } from 'effector-react' | |
import * as effector from 'effector' | |
import { pathOr } from 'ramda' | |
const trackCreateStore = effector.createEvent('trackCreateStore') | |
const trackCreateEvent = effector.createEvent('trackCreateEvent') | |
const trackCreateEffect = effector.createEvent('trackCreateEffect') | |
const trackCreateStoreObject = effector.createEvent('trackCreateStoreObject') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStore as createReduxStore } from 'redux' | |
import { devToolsEnhancer } from 'redux-devtools-extension' | |
const redux = createReduxStore((state, { payload }) => payload, devToolsEnhancer()) | |
export function useReduxDevTool(store) { | |
store.watch(payload => redux.dispatch({ type: 'CHANGE', payload })) | |
} |
NewerOlder