#Blog Tutorial - NoteDetailsPage get's executed twice
1 messages · Page 1 of 1 (latest)
nobody?
When you navigate you go though a transition change, on each transition state your component re-renders: https://remix.run/docs/en/v1/api/remix#transitionstate
So when i open http://192.168.178.38:3001/notes/cl9gn2v0g00040rby7tinx28p i have this in my console.... i only see one state.
i do ask this quesion if it's a default behaviour or if this could make any problems in the future
I can't see a local web-server running on your computer to tell you anything. Need code or a deployed site to observe behavior. This could be cause be any number of things: the component library you are using, <StrictMode> with these logs existing in a useEffect(), etc.