mirror of
https://github.com/Luchexx/wacrm.git
synced 2026-11-02 09:19:51 +00:00
Replace `user` object with `user?.id` in dependency arrays to prevent unnecessary re-renders. Add `lastFetchedUserIdRef` to track the user ID for successfully initiated profile fetches, preventing redundant API calls when the window refocuses or the auth token is refreshed. |
||
|---|---|---|
| .. | ||
| use-auth.tsx | ||
| use-broadcast-sending.ts | ||
| use-can.ts | ||
| use-presence.ts | ||
| use-realtime.ts | ||
| use-theme.tsx | ||
| use-total-unread.ts | ||