The reka-ui ContextMenu component caused significant performance degradation when multiple editor tabs were cached via KeepAlive, due to its heavy state machine, provide/inject chain, and document-level event listeners accumulating across cached instances. Replaced with a minimal CustomContextMenu that renders via Teleport without any DOM wrapping or reka-ui dependency, eliminating the lag while preserving the same visual appearance and functionality. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| components.json | ||
| index.html | ||
| tsconfig.json | ||
| vite.config.ts | ||