devTools for createContextStore
chadams opened this issue · comments
Chad Adams commented
How would one expose a context store to redux-devtool, devTools=true option does not seem to work.
Sean Matheson commented
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. 🙏
Chad Adams commented
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"
Chad Adams commented
FIXED: removed Dev-Tools from Chrome and then re-added Dev-Tools from Chrome store. Works now. Must have been something on my side.