ctrlplusb / easy-peasy

Vegetarian friendly state for React

Home Page:https://easy-peasy.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

devTools for createContextStore

chadams opened this issue · comments

How would one expose a context store to redux-devtool, devTools=true option does not seem to work.

I believe you would need to set the name of the store via the configuration property.

createContextStore(modelCreator, { name: 'MyContextStore' });

It should appear in the dropdown within the dev tools. Let me know. 🙏

just tried adding "name" to createContextStore. It is not showing in the dropdown.

const ScheduleStore = createContextStore(
  {
    <... modelCreator>
  },
  { name: "DataDashbaord", devTools: true }
);

Redux Dev-Tools only shows the root redux store. and not this context store. using "easy-peasy": "4.0.1"

FIXED: removed Dev-Tools from Chrome and then re-added Dev-Tools from Chrome store. Works now. Must have been something on my side.