mirror of
https://github.com/documenso/documenso.git
synced 2026-07-12 14:05:20 +10:00
6f95494ad9
@hono/vite-dev-server's default handleHotUpdate triggers a full page reload for any changed module that was loaded for SSR. With React Router's `ssr: true`, that is essentially every app/route file, so every edit forced a full reload and React Refresh never ran. Wrap serverAdapter(...) and override the returned plugin's handleHotUpdate to only invoke the full-reload path for files under apps/remix/server/** (the actual Hono backend). Everything else falls through to the React Router HMR / React Refresh pipeline.