MCPcopy Create free account
hub / github.com/gre/gl-react / componentWillUnmount

Method componentWillUnmount

packages/gl-react/src/Bus.tsx:49–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 }
48
49 componentWillUnmount() {
50 const { uniform, index } = this.props;
51 if (uniform) {
52 const { glParent } = this.context;
53 invariant(
54 glParent instanceof Node,
55 'a <Bus uniform=".." /> needs to be inside a Node'
56 );
57 glParent._removeUniformBus(this, uniform, index);
58 }
59 }
60
61 componentDidUpdate(prevProps: any) {
62 const { uniform: oldUniform, index: oldIndex } = prevProps;

Callers

nothing calls this directly

Calls 1

_removeUniformBusMethod · 0.80

Tested by

no test coverage detected