SurfSense/surfsense_web
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
..
app perf: replace useSearchParams() with window.location.search in effects 2026-04-02 02:45:46 +05:30
atoms feat: integrate Stripe for page purchases and reconciliation tasks 2026-03-31 18:39:45 -07:00
changelog/content revert changelog - keep historical ElectricSQL reference 2026-03-24 17:08:21 +02:00
components perf: replace useSearchParams() with window.location.search in effects 2026-04-02 02:45:46 +05:30
content/docs fix: configure zero-cache sync workers, connection limits, and publication 2026-04-01 10:18:51 +02:00
contexts Implement update notion page tool 2026-02-13 10:45:51 +02:00
contracts feat: integrate Stripe for page purchases and reconciliation tasks 2026-03-31 18:39:45 -07:00
hooks refactor: update document processing status handling and improve sidebar components 2026-03-31 21:29:46 -07:00
i18n chore: linting 2026-03-27 03:17:05 -07:00
lib chore: linting 2026-03-31 21:42:03 -07:00
messages refactor: update global image model and configuration messages for clarity and consistency across components 2026-03-29 17:16:40 +05:30
public feat: add Dropbox connector support in enums, icons, and API service for enhanced integration 2026-03-30 22:29:29 +05:30
types fix: move quickAskMode to IPC to prevent sessionStorage leak between windows 2026-03-27 20:35:29 +02:00
zero feat: add folder management features including creation, deletion, and organization of documents within folders 2026-03-27 01:39:15 -07:00
.cursorrules feat: monorepo 2025-04-07 23:47:06 -07:00
.dockerignore feat: frontend docker to use nextjs production build 2025-10-23 20:37:01 -07:00
.env.example merge upstream/dev into feat/migrate-electric-to-zero 2026-03-24 17:40:34 +02:00
.gitignore chore: remove connector status config from .gitignore 2026-01-12 14:09:45 -08:00
biome.json chore: update biome configuration and dependencies to Biome version 2.4.6, enhancing compatibility and functionality 2026-03-07 12:52:05 +05:30
components.json chore: ran linting 2026-02-17 12:47:39 +05:30
docker-entrypoint.js format: auto-fix via pnpm format:fix 2026-03-24 16:07:28 +02:00
docker-entrypoint.sh feat: add Docker configuration files and installation script for SurfSense 2026-02-24 22:45:37 +05:30
Dockerfile feat: add Zero infra — docker-compose, env vars, Dockerfile, CI workflows 2026-03-23 18:27:18 +02:00
drizzle.config.ts chore: biome checks 2025-10-15 14:38:26 -07:00
eslint.config.mjs Biome: fixes for eslint config 2025-07-27 11:47:38 -07:00
instrumentation-client.ts fix: update PostHog configuration for improved tracking 2026-03-11 23:18:09 -07:00
instrumentation.ts feat: enhance error handling with PostHog integration 2026-03-12 01:28:39 -07:00
LICENSE feat: monorepo 2025-04-07 23:47:06 -07:00
mdx-components.tsx chore: linting 2026-01-07 19:10:53 -08:00
next.config.ts chore: linting 2026-03-27 03:17:05 -07:00
package.json feat: bumped version to 0.0.14 2026-03-31 21:45:18 -07:00
pnpm-lock.yaml feat: add folder management features including creation, deletion, and organization of documents within folders 2026-03-27 01:39:15 -07:00
postcss.config.mjs Initial formatting using biome 2025-07-27 10:05:37 -07:00
source.config.ts feat: released 0.0.9 changelog 2025-12-24 18:03:22 -08:00
svgr.d.ts chore: ran linting 2026-02-10 19:06:21 +05:30
tailwind.config.js feat: enhance UI components with new border radius and tooltip features 2026-01-20 17:35:08 +05:30
tsconfig.json feat: old chat to new-chat with persistance 2025-12-21 16:32:55 -08:00