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

Function mapStateToProps

ui/src/components/Collection/CollectionContextLoader.jsx:65–73  ·  view source on GitHub ↗
(state, ownProps)

Source from the content-addressed store, hash-verified

63}
64
65const mapStateToProps = (state, ownProps) => {
66 const { location, collectionId } = ownProps;
67 const xrefQuery = collectionXrefFacetsQuery(location, collectionId);
68 return {
69 collection: selectCollection(state, collectionId),
70 xrefQuery,
71 xrefResult: selectCollectionXrefResult(state, xrefQuery),
72 };
73};
74
75const mapDispatchToProps = {
76 forceMutate,

Callers

nothing calls this directly

Calls 3

selectCollectionFunction · 0.90

Tested by

no test coverage detected