MCPcopy Create free account
hub / github.com/alephdata/aleph / mapStateToProps

Function mapStateToProps

ui/src/components/SearchAlert/SearchAlert.jsx:109–117  ·  view source on GitHub ↗
(state, ownProps)

Source from the content-addressed store, hash-verified

107}
108
109const mapStateToProps = (state, ownProps) => {
110 const { location } = ownProps;
111 const query = alertsQuery(location);
112 return {
113 query,
114 result: selectAlertResult(state, query),
115 loggedIn: selectSession(state).loggedIn,
116 };
117};
118
119const mapDispatchToProps = { createAlert, deleteAlert, queryAlerts };
120export default compose(

Callers

nothing calls this directly

Calls 3

alertsQueryFunction · 0.90
selectAlertResultFunction · 0.90
selectSessionFunction · 0.90

Tested by

no test coverage detected