Detect leaving page react July 8, 2019 16 32 64 128 Detect user leaving page react React router detect leaving page