Closed filipcoja closed 4 years ago
New developers could interpret the documentation regarding Signals and Slots (https://flowframework.readthedocs.io/en/stable/TheDefinitiveGuide/PartIII/SignalsAndSlots.html) wrong and use the file path to the class instead of the Namespace.
We should update the example to use ClassName::classinstead of a String containting the namespace since this is considered best practice. This would also eliminate the misinterpretation of the docs.
ClassName::class
While we're on it we should also add a big notice about the method name that has to be prefixed with emit but referenced without the prefix
emit
Related: #1003
Description
New developers could interpret the documentation regarding Signals and Slots (https://flowframework.readthedocs.io/en/stable/TheDefinitiveGuide/PartIII/SignalsAndSlots.html) wrong and use the file path to the class instead of the Namespace.
Resolution
We should update the example to use
ClassName::class
instead of a String containting the namespace since this is considered best practice. This would also eliminate the misinterpretation of the docs.