fix: defer navigation until async cookie or data clearing completes (#1150)