Cleanup memory leaks on an Unmounted Component in React Hooks
问题 I'm new using React, so this might be really simple to achieve but I can't figure it out by myself even though I've done some research. Forgive me if this is too dumb. Context I'm using Inertia.js with the Laravel (backend) and React (front-end) adapters. If you don't know Inertia, it basically: Inertia.js lets you quickly build modern single-page React, Vue and Svelte apps using classic server-side routing and controllers. Issue I'm doing a simple login page that has a form that when