Closed austinmao closed 8 years ago
Further clarification...
@asyncConnect([{
deferred: true,
promise: (options) => {
const {dispatch, getState} = options.store;
const {params, helpers} = options;
console.log('Params: ', params);
if (!isLoaded(getState())) {
return dispatch(loadWidgets());
}
}
}])
@austinmao Yes, sorry, i haven't updates docs yet. thanks, @kjanoudi
Prior to v1.0 that was released today, you could do:
https://github.com/erikras/react-redux-universal-hot-example/blob/master/src/containers/Widgets/Widgets.js shows that you can do:
I am trying to convert code I had before to v1.0 where I am using
params
andstore
. Would you add this to your docs?