MCPcopy Create free account
hub / github.com/microsoft/SandDance / _onUpdate

Function _onUpdate

docs/app/js/sanddance-app.js:25229–25235  ·  view source on GitHub ↗
(prevProps)

Source from the content-addressed store, hash-verified

25227 _setComponentRef(this.props.componentRef, this);
25228}
25229function _onUpdate(prevProps) {
25230 if (prevProps.componentRef !== this.props.componentRef) {
25231 // eslint-disable-next-line @typescript-eslint/no-explicit-any
25232 _setComponentRef(prevProps.componentRef, null);
25233 _setComponentRef(this.props.componentRef, this);
25234 }
25235}
25236function _onUnmount() {
25237 _setComponentRef(this.props.componentRef, null);
25238}

Callers

nothing calls this directly

Calls 1

_setComponentRefFunction · 0.85

Tested by

no test coverage detected