Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onIncrement() {
context.dispatch(actions.counter.increment());
},
onReset() {
context.dispatch(actions.counter.reset());
},
onRandom() {
context.dispatch(actions.counter.random());
}
});
export default composeAll(
withRedux(mapStateToProps),
useDeps(depsToProps)
)(Counter);
}
} else {
document.title = event.title;
onData(null, { event });
}
});
onData(null, {});
};
const depsToProps = (context, actions) => ({
context
});
export default composeAll(
compose(initData),
useDeps(depsToProps)
)(Post);
events: { status: 'ready', data: events }
});
} else {
onData(null, {
events: { status: 'pending', data: [] }
});
}
};
const depsToProps = (context, actions) => ({
context
});
export default composeAll(
withTracker(subscription),
useDeps(depsToProps)
)(EventsList);
function composer({context}, onData) {
onData(null, {
loggedIn: !!context.Meteor.user()
});
}
const depsToProps = (context, actions) => ({
context,
dispatch: context.dispatch,
createNewUser: actions.users.createNewUser,
});
export default composeAll(
withTracker(composer),
useDeps(depsToProps)
)(Register);
loggedIn: !!user,
isMember,
isApplying
});
} else {
onData(null, { loggedIn: user});
}
};
const depsToProps = (context, actions) => ({
context
});
export default composeAll(
withTracker(initData),
useDeps(depsToProps)
)(MemberInfo);
const avatar = isWechat ? user.profile.headimgurl : '';
onData(null, {
loggedIn: !!user,
notWechat: !isWechat,
isWechatVerified,
nickname,
avatar
});
} else {
onData(null, {loggedIn: user});
}
}
export default composeAll(
withTracker(composer),
useDeps()
)(Login);