pull down to refresh

I got that. How do miners create the actual template, though, if a new block has just been found? I think it's risky to continue working on the previous template.