#Full page reload on editing loader

1 messages · Page 1 of 1 (latest)

brittle portal
#

Is it common to have a full page reload when editing? I am following the tutorial with Vite from React Router docs.

earnest ferry
#

If nextjs apps and remix apps are running on same port, then due to multiple reloads, your full page is getting reloading while editing loader. Try changing any one app's port to a different port and it should not reload full page.

brittle portal
#

I didn't have any nextjs or remix apps running. I was just following the tutorial from React Router docs.

earnest ferry
#

Try updating the remix version to 1.12

brittle portal
#

I am not using Remix. I am playing with React Router

last skiff
#

I think it depends on what you are editing. I put together a little sample app that had <App/> and then that references <Test/>. If I edited the App.tsx file, it appeared to reload everything and lose my state in Test.tsx, if I edited the Test.tsx file, it appeared to only reload Test.tsx and maintained the state in Test.tsx.