def _get_all_custom_code(self) -> set[str]:
        """Get custom code for the component.

        Returns:
            The custom code.
        """
        if self.rendered_as_shared:
            return set()
        return self.component._get_all_custom_code().union({self.code})
Get custom code for the component.

        Returns:
            The custom code.
        
reflex/components/component.py