mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-01-31 19:54:35 +03:00
Tweak the warning messages
This commit is contained in:
parent
b88280a7fa
commit
7ad3bb259c
|
@ -27,8 +27,10 @@ export default function createDevTools(children) {
|
||||||
|
|
||||||
if (!props.store && !context.store) {
|
if (!props.store && !context.store) {
|
||||||
console.error(
|
console.error(
|
||||||
`DevTools cannot render because no Redux store was injected via \
|
'Redux DevTools could not render. You must pass the Redux store ' +
|
||||||
props or <Provide>`);
|
'to <DevTools> either as a "store" prop or by wrapping it in a ' +
|
||||||
|
'<Provider store={store}>.'
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,8 +42,10 @@ props or <Provide>`);
|
||||||
|
|
||||||
if (!this.liftedStore) {
|
if (!this.liftedStore) {
|
||||||
console.error(
|
console.error(
|
||||||
`DevTools cannot render because the store not been instrumented \
|
'Redux DevTools could not render. Did you forget to include ' +
|
||||||
with DevTools.instrument()`);
|
'DevTools.instrument() in your store enhancer chain before ' +
|
||||||
|
'using createStore()?'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user