Skip to content

Commit 3c0f9a2

Browse files
committed
Add new lines into hydrated data error message
This should more cleanly differentiate the two cases
1 parent 14e8195 commit 3c0f9a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

node_package/src/StoreRegistry.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ export default {
4040

4141
if (storeKeys.length === 0) {
4242
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 you do not call ` +
43+
`${name}. This can happen if you are server rendering and either \nyou do not call ` +
4444
"redux_store near the top of your controller action's view (not the layout) " +
45-
'and before any call to react_component or you do not render ' +
46-
'`redux_store_hydration_data` anywhere on your page';
45+
'and before any call to react_component \nor you do not render ' +
46+
'redux_store_hydration_data anywhere on your page';
4747
throw new Error(msg);
4848
}
4949

0 commit comments

Comments
 (0)