Only rebuild atom if the code changed