OpenCut/.github
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
..
ISSUE_TEMPLATE fix(issue_template): fix tags 2025-06-25 20:50:33 +08:00
workflows [Editor] Prevent excessive project creation from invalid routes 2025-07-31 05:29:42 +07:00
CODE_OF_CONDUCT.md feat: github templates and db migration 2025-06-23 13:37:37 +03:00
CONTRIBUTING.md docs: reorganize prerequisites and setup instructions for clarity 2025-07-17 20:12:34 +06:00
SECURITY.md fix: security emmai;l 2025-06-23 13:38:08 +03:00
SUPPORT.md feat: github templates and db migration 2025-06-23 13:37:37 +03:00
copilot-instructions.md feat: add ultracite (#452) 2025-07-25 00:41:34 +03:00
pull_request_template.md Update pull_request_template.md 2025-07-17 13:27:59 +02:00