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

Function mapStateToProps

ui/src/components/Entity/EntityReferencesMode.jsx:257–268  ·  view source on GitHub ↗
(state, ownProps)

Source from the content-addressed store, hash-verified

255}
256
257const mapStateToProps = (state, ownProps) => {
258 const { location, reference, query } = ownProps;
259 const parsedHash = queryString.parse(location.hash);
260 const schema = selectSchema(state, reference.schema);
261 return {
262 schema,
263 parsedHash,
264 expandedId: parsedHash.expand,
265 result: selectEntitiesResult(state, query),
266 isThing: schema.isThing(),
267 };
268};
269
270export default compose(
271 withRouter,

Callers

nothing calls this directly

Calls 2

selectSchemaFunction · 0.90
selectEntitiesResultFunction · 0.90

Tested by

no test coverage detected