SurfSense/surfsense_web/app
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
..
(home) chore: linting 2026-03-31 14:45:46 -07:00
api fix: always render ZeroProvider, allow anon queries without 401 2026-03-24 16:59:42 +02:00
auth/callback fix: remove message from loading UI 2026-01-27 15:28:30 +05:30
dashboard perf: replace useSearchParams() with window.location.search in effects 2026-04-02 02:45:46 +05:30
db try vercel fix 2025-09-30 22:45:04 -07:00
docs fix: use React.cache() to deduplicate getPage calls 2026-04-02 01:06:37 +05:30
invite/[invite_code] feat: replace Loader2 with Spinner component for consistent loading indicators 2026-01-25 15:23:45 +05:30
public/[token] chore: linting 2026-03-27 03:17:05 -07:00
verify-token chore: ran biome checks 2026-03-07 12:57:27 +05:30
error.tsx chore: linting 2026-03-27 03:17:05 -07:00
favicon.ico feat: updated logo 2026-01-08 23:03:43 -08:00
global-error.tsx chore: linting 2026-03-27 03:17:05 -07:00
globals.css perf: add content-visibility: auto to long list items 2026-04-02 02:26:55 +05:30
layout.config.tsx chore: ran linting 2026-03-10 16:17:12 +05:30
layout.tsx format: auto-fix via pnpm format:fix 2026-03-24 16:07:28 +02:00
sitemap.ts feat: add Dropbox connector documentation and update sitemap 2026-03-30 22:45:06 +05:30