Hi. Infinitive "to hit" here acts as an adverbial modifier towards the word "heatwaves", indicating the action which has happened. It seems to me that "to have hit" there would be better.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.