Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.props.displayMessage(error);
}
}
});
const withContext = fromRenderProps(
MessageContext.Consumer,
({ displayMessage }) => ({ displayMessage })
);
const withBranch = hideIfNotData => branch(hideIfNotData, renderNothing);
export default compose(
usersState,
withContext,
withAuthentication(fetch),
withFetch,
lifecycleHoc,
withBranch(({ users }) => !users || users.length === 0)
)(Component);