Prevent re-renders while a current render is in progress