You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When autoCodeSplitting is set to true in vite.config.ts, every time I change anything in a route file, entire app re-renders. If i extract the part I want to change in a separate file (so not only component but new file) then only the component itself re-renders.
Removing autoCodeSplitting from vite.config.ts makes everything work normally, ie. changing something in a route.tsx file doesn't re-render the entire app, just the part that got changed.
We'll need to wait for some resolution on the #2316 branch, as that contains many related changes as to how autoCodeSplitting plays with the rest of the dev environment.
Which project does this relate to?
Router
Describe the bug
When
autoCodeSplitting
is set totrue
invite.config.ts
, every time I change anything in a route file, entire app re-renders. If i extract the part I want to change in a separate file (so not only component but new file) then only the component itself re-renders.Removing
autoCodeSplitting
fromvite.config.ts
makes everything work normally, ie. changing something in aroute.tsx
file doesn't re-render the entire app, just the part that got changed.Your Example Website or App
https://stackblitz.com/edit/tanstack-router-1hpdjf?file=src%2Froutes%2Findex.tsx&preset=node
Steps to Reproduce the Bug or Issue
Change anything inside any route file.
Entire app re-renders.
Expected behavior
Expected only the DOM node where the change happens to re-render.
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: