Sudhagar
Does createAsync cause double renders on the server i.e an extra render after data becomes available
deferStream: true/false doesn't have any different - both the cases, the components runs twice.
I haven't set deferStream.
This is what I understand is happening. Correct me if I am wrong.
Server does a render of the component when client requests for it the first time and streams whatever HTML it has over the wire.
Now when async resolves on the server side and again the server does render of the component.
5 replies
The requestEvent in the middleware is different from requestEvent from getRequestEvent in the same
Btw, I don't have a "use server" in the file where I am making getRequestEvent(). If I add that, will it behave the way I am expecting it to behave?
6 replies
The requestEvent in the middleware is different from requestEvent from getRequestEvent in the same
Since middleware and where I am doing another function call for getRequestEvent are two hops apart, I opted to do
getRequestEvent
instead of passing it around.6 replies