Also the tutorial should note, that the retrieval only works, if the components constructor doesnβt get other parameters than OBC.Components. If the class needs more to function, I would recommend to write a setup() Method that takes everything else.
Reproduction βΆοΈ
No response
Steps to reproduce π’
No response
System Info π»
Not needed since the error is in the content of the docs
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
[X] Check that this is a concrete bug. For Q&A join our Community.
Describe the bug π
In this tutorial the retrieval of tools is explained like this:
const hwTool = await components.get(HelloWorldTool.uuid);
but it works with the tools attribute and without the uuid like this:
const hwTool = await components.tools.get(HelloWorldTool);
Also the tutorial should note, that the retrieval only works, if the components constructor doesnβt get other parameters than OBC.Components. If the class needs more to function, I would recommend to write a setup() Method that takes everything else.
Reproduction βΆοΈ
No response
Steps to reproduce π’
No response
System Info π»
Used Package Manager π¦
npm
Error Trace/Logs π
No response
Validations β