mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 01:06:23 +02:00
Replace ReactDOMServer.renderToString with a client-side helper using createRoot + flushSync to render small icon elements to HTML strings. react-dom/server pulls the entire server rendering runtime into the client JS bundle. Since this file is imported by the main chat component (thread.tsx), the extra weight hits every chat page load. react-dom and react-dom/client are already in the client bundle, so the replacement adds zero new bundle weight. Fixes #1189 |
||
|---|---|---|
| .. | ||
| connector-popup | ||
| assistant-message.tsx | ||
| chat-session-status.tsx | ||
| citation-metadata-context.tsx | ||
| connector-popup.tsx | ||
| document-upload-popup.tsx | ||
| edit-composer.tsx | ||
| image.tsx | ||
| inline-citation.tsx | ||
| inline-mention-editor.tsx | ||
| markdown-code-block.tsx | ||
| markdown-text.tsx | ||
| thinking-steps.tsx | ||
| thread-list.tsx | ||
| thread-scroll-to-bottom.tsx | ||
| thread.tsx | ||
| tool-fallback.tsx | ||
| tooltip-icon-button.tsx | ||
| user-message.tsx | ||