#Blog Tutorial - NoteDetailsPage get's executed twice

1 messages · Page 1 of 1 (latest)

drifting elk
#

Hi,
i was playing around with this tutorial and was wondering, when i do a concole.log in NoteDetailsPage and browsing to a notes detailpage, i see the log two times in the browser. Is this how is should be?
Doesn't this mean the code run's twice

drifting elk
#

nobody?

slate moss
drifting elk
slate moss
#

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.

drifting elk
#

i only initialized the blog-tutorial and started the server.