refactor(Terminal): enhance session management and memoization

- Updated Terminal component to use memoization for performance optimization.
- Modified onStatusChange and onCloseSession props to include sessionId for better session tracking.
- Refactored TerminalLayer to utilize stable callback references for session management functions.
- Cleaned up unnecessary whitespace in TerminalLayer and TopTabs components.
- Adjusted index.tsx to improve rendering performance by removing React.StrictMode.
This commit is contained in:
LAPTOP-O016UC3M\Qi Chen
2025-12-08 20:12:53 +08:00
parent c29fc418f9
commit 649fadb0c2
5 changed files with 533 additions and 511 deletions

View File

@@ -11,6 +11,6 @@ const root = ReactDOM.createRoot(rootElement);
root.render(
// StrictMode causes double renders in development - disabled for performance testing
// <React.StrictMode>
<App />
<App />
// </React.StrictMode>
);