How To Remove Canvas Texture

Hello All ,
we tried appending QR image (Blob format with URL.createObjectURL) to our texture ( inside let say tag name ContainerA ) using create canvas method.

we are trying to hide particular image by using :

this.tag("ContainerA").patch({ 
visible : false 
})

then it is throwing some error : TypeError: this._cancelCb is not a function

we tried rewriting the texture to undefined ,tried changing alpha to 0 , still error is not resolved. Can you please help us resolving this error.

That is an error inside of TextureSource:

I’m not sure what _cancelCb is being set to, but you can override it and set it to null to prevent the error from happening. That is being called because you’re trying to hide it - so your code is working, its just having a problem when it goes to hide the texture.