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
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?
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.