()
| 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; |
nothing calls this directly
no test coverage detected