MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / componentDidUpdate

Function componentDidUpdate

src/app/keyring/KeyGrid.js:72–77  ·  view source on GitHub ↗
(prevProps)

Source from the content-addressed store, hash-verified

70 }
71
72 componentDidUpdate(prevProps) {
73 if (this.props.match.params.keyId !== prevProps.match.params.keyId) {
74 this.setState({activeKey: this.props.match.params.keyId});
75 }
76 this.scrollToKey();
77 }
78
79 scrollToKey() {
80 if (this.state.activeKey && this.rowRefs[this.state.activeKey]) {

Callers

nothing calls this directly

Calls 1

setStateMethod · 0.45

Tested by

no test coverage detected