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

Method componentDidUpdate

ui/src/viewers/PdfViewerSearch.jsx:31–36  ·  view source on GitHub ↗
(prevProps)

Source from the content-addressed store, hash-verified

29 }
30
31 componentDidUpdate(prevProps) {
32 const { query } = this.props;
33 if (!query.sameAs(prevProps.query)) {
34 this.fetchSearchResults();
35 }
36 }
37
38 getResultLink(result) {
39 const { query, location, isPreview } = this.props;

Callers

nothing calls this directly

Calls 2

fetchSearchResultsMethod · 0.95
sameAsMethod · 0.80

Tested by

no test coverage detected