MCPcopy Create free account
hub / github.com/CommE2E/comm / componentDidUpdate

Method componentDidUpdate

lib/socket/api-request-handler.react.js:73–82  ·  view source on GitHub ↗
(prevProps: Props)

Source from the content-addressed store, hash-verified

71 }
72
73 componentDidUpdate(prevProps: Props) {
74 const isConnected = APIRequestHandler.isConnected(this.props);
75 const wasConnected = APIRequestHandler.isConnected(prevProps);
76 if (isConnected !== wasConnected) {
77 this.props.registerActiveSocket(
78 this.props.keyserverID,
79 this.registeredResponseFetcher,
80 );
81 }
82 }
83
84 render(): React.Node {
85 return null;

Callers

nothing calls this directly

Calls 1

isConnectedMethod · 0.80

Tested by

no test coverage detected