This is a remount, not React Refresh. Keeping hook state needs Bun to inject $RefreshReg$ during --hot . That transform exists on bun build --react-fast-refresh only. Tracked in oven-sh/bun#40179 .
Thanks for explaining the tax side, since many reviews skip that part entirely.