Improve authentication hook and data fetching logic

Fix memory leaks in the authentication hook by correctly clearing timeouts. Address incorrect dependency arrays in effects and improve data fetching reliability by memoizing functions. Refactor error handling in location detection function to return appropriate status codes. Ensure compatibility with Fast Refresh and optimize hook dependencies.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: fe5b902e-beda-40fc-bf87-a3c4ab300e3a
Replit-Commit-Checkpoint-Type: full_checkpoint
This commit is contained in:
pac7
2025-10-08 12:57:22 +00:00
parent aee512b8a1
commit 039d1b460b

Diff Content Not Available