tanstack.com icon indicating copy to clipboard operation
tanstack.com copied to clipboard

Tanstack Start Build From Scratch docs example is a full page reload

Open aloh86 opened this issue 7 months ago • 1 comments

If you follow the current example on the 'Build From Scratch' page, clicking on the counter button seems to cause a full page reload (notice that the browser refresh button animation refresh -> X -> refresh will trigger).

As someone new to react frameworks/stacks my understanding is that this should not be happening? The numbers should update without a page reload, right?

https://tanstack.com/start/latest/docs/framework/react/build-from-scratch

edit: If you replace the file read with useState, there is no full page reload. I'm not sure what is causing page reload when reading the counter state from file.

aloh86 avatar Jun 18 '25 21:06 aloh86