I thought that the pre-rendering process would mean that hooks like useEffect will already be executed on the server.
I read something about hydration, don't know if it explains this occurrence but couldn't understand it clearly from the blogs that explained the term.