Skip to content

Commit 1095759

Browse files
committed
Change hydrated stores error to be a list of actions
1 parent 3c0f9a2 commit 1095759

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

node_package/src/StoreRegistry.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ export default {
3939
const storeKeys = Array.from(hydratedStores.keys()).join(', ');
4040

4141
if (storeKeys.length === 0) {
42-
const msg = 'There are no stores hydrated and you are requesting the store ' +
43-
`${name}. This can happen if you are server rendering and either \nyou do not call ` +
44-
"redux_store near the top of your controller action's view (not the layout) " +
45-
'and before any call to react_component \nor you do not render ' +
46-
'redux_store_hydration_data anywhere on your page';
42+
const msg = `There are no stores hydrated and you are requesting the store ${name}.\n` +
43+
'This can happen if you are server rendering and either: \n' +
44+
"1) You do not call redux_store near the top of your controller action's " +
45+
'view (not the layout) and before any call to react_component \n' +
46+
'2) You do not render redux_store_hydration_data anywhere on your page';
4747
throw new Error(msg);
4848
}
4949

0 commit comments

Comments
 (0)