Skip to content

Commit

Permalink
Merge pull request #11 from collective/ssr_google_index
Browse files Browse the repository at this point in the history
added asynConnect for ssr
  • Loading branch information
giuliaghisini authored Feb 25, 2021
2 parents 3db78d2 + abb4791 commit 0234c3c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,13 @@ export default (config) => {
dropdownMenuNavItems: dropdownMenuNavItemsReducer,
};

config.settings.extendableAsyncConnect = [
...config.settings.extendableAsyncConnect,
{
key: 'dropdownMenuNavItems',
promise: ({ location, store: { dispatch } }) =>
__SERVER__ && dispatch(getDropdownMenuNavitems()),
},
];
return config;
};

0 comments on commit 0234c3c

Please sign in to comment.