Use isPrimed api for getUser fetch action
This commit is contained in:
@@ -8,6 +8,9 @@ export default contain(
|
||||
{
|
||||
store: 'appStore',
|
||||
fetchAction: 'appActions.getUser',
|
||||
isPrimed({ username }) {
|
||||
return !!username;
|
||||
},
|
||||
getPayload(props) {
|
||||
return {
|
||||
isPrimed: !!props.username
|
||||
|
Reference in New Issue
Block a user