Cache compiled component, and parse condition in if attributes