OpenCut/apps/web
naoNao89 a1d2fbd96b [Editor] Prevent excessive project creation from invalid routes
Race conditions in useEffect hook caused navigation to invalid project IDs
to create multiple 'Untitled Project' entries. Users reported accumulating
885+ projects due to this bug.

This change adds global invalid project ID tracking across component remounts
and prevents race conditions through:
- Global invalidProjectIds Set in project store with tracking functions
- isInitializingRef to prevent duplicate initialization attempts
- Proper useEffect cleanup with cancellation tokens
- Specific error handling for 'not found' vs recoverable errors
- Removed problematic activeProject?.id dependency

Testing:
- Add comprehensive test suite (15 tests) with Vitest + React Testing Library
- Include integration tests demonstrating bug and validating fix
- Update CI pipeline to run automated tests

Fixes #182
2025-07-31 05:29:42 +07:00
..
migrations feat: add ultracite (#452) 2025-07-25 00:41:34 +03:00
public feat: add ultracite (#452) 2025-07-25 00:41:34 +03:00
scripts [Editor] Prevent excessive project creation from invalid routes 2025-07-31 05:29:42 +07:00
src [Editor] Prevent excessive project creation from invalid routes 2025-07-31 05:29:42 +07:00
.env.example fix: typo in url 2025-07-22 00:34:49 +02:00
.gitignore chore(turborepo): initial setup and config, move db to package 2025-06-24 11:23:40 +03:00
Dockerfile feat: Add comprehensive keyboard shortcuts system for video editor 2025-07-15 12:36:53 -04:00
components.json feat: add ultracite (#452) 2025-07-25 00:41:34 +03:00
drizzle.config.ts feat: add ultracite (#452) 2025-07-25 00:41:34 +03:00
next.config.ts feat: add opencut blog 2025-07-21 23:18:07 +02:00
package.json [Editor] Prevent excessive project creation from invalid routes 2025-07-31 05:29:42 +07:00
postcss.config.mjs format 2025-07-20 11:00:22 +03:00
tailwind.config.ts feat: add ultracite (#452) 2025-07-25 00:41:34 +03:00
tsconfig.json feat: add ultracite (#452) 2025-07-25 00:41:34 +03:00
tsconfig.tsbuildinfo [Editor] Prevent excessive project creation from invalid routes 2025-07-31 05:29:42 +07:00
vitest.config.ts [Editor] Prevent excessive project creation from invalid routes 2025-07-31 05:29:42 +07:00