Sets the active composition key, marking the previous and new composition nodes as dirty for re-rendering.