title: How to respond to user deletion from database in react?
body: <p>I have an app that have login form and redirects you to your profile page. On this profile page I want to somehow respond when user gets deleted from database. At this moment I can only respond if my app requests user info from db and gets 401. This situation occurs only if I go to Profile info page. But how can I respond immediately? Is it possible without rewriting whole app logic?</p>