SurfSense/surfsense_web/app/dashboard/[search_space_id]
SohamBhattacharjee2003 767c97682d perf: replace useSearchParams() with window.location.search in effects
Components were calling useSearchParams() at the top level but only
reading the value inside useEffect or callbacks, never in JSX. This
subscribed the entire component tree to every URL query change.

Fix: read from window.location.search directly inside the effect so
no React subscription is created.

Changes:
- new-chat/page.tsx: read commentId inside effect + popstate listener
  for SPA back/forward support; removes subscription from 1500+ line tree
- dashboard/page.tsx: read window.location.search at redirect time;
  removes searchParams from dep array
- public-chat-footer.tsx: one-shot mount read for action=clone param
- TokenHandler.tsx: one-shot mount read for token + refresh_token params

Implements Vercel React Best Practices Rule: rerender-defer-reads (5.2)
2026-04-02 02:45:46 +05:30
..
buy-pages feat: integrate Stripe for page purchases and reconciliation tasks 2026-03-31 18:39:45 -07:00
connectors/callback chore: ran linting 2026-03-21 13:20:13 +05:30
documents/(manage)/components perf: add content-visibility: auto to long list items 2026-04-02 02:26:55 +05:30
logs chore: linting 2026-03-27 03:17:05 -07:00
more-pages chore: linting 2026-03-27 03:17:05 -07:00
new-chat perf: replace useSearchParams() with window.location.search in effects 2026-04-02 02:45:46 +05:30
onboard chore: ran linting 2026-03-30 01:50:41 +05:30
purchase-cancel chore: linting 2026-03-31 21:42:03 -07:00
purchase-success chore: linting 2026-03-31 21:42:03 -07:00
team chore: format upstream files 2026-03-30 20:33:40 +02:00
user-settings/components chore: linting 2026-03-31 21:42:03 -07:00
client-layout.tsx refactor: simplify onboarding page logic by temporarily disabling auto-configuration and redirect features for UI testing 2026-03-29 18:25:45 +05:30
layout.tsx chore: ran linting 2026-03-06 12:17:57 +05:30
page.tsx chore: linting 2026-03-27 03:17:05 -07:00