Considering everything to be a component, the my-theme.theme file is still in our way. Whatever we write in there applies to every component, so it breaks the standalone component logic.

In programming terms this means that we should write a hook_preprocess_node function inside the node component. Not in the global my-theme.theme file somewhere on line 314.