Is there any way to run code after all necessary components have been server-side rendered, but before any data is initially sent to the server?
As a hypothetical example, let's say I want to count how many React components are being rendered in my app by incrementing a global variable each time, and then send that variable to the client using inject-initial. How would that be possible?
Is there any way to run code after all necessary components have been server-side rendered, but before any data is initially sent to the server?
As a hypothetical example, let's say I want to count how many React components are being rendered in my app by incrementing a global variable each time, and then send that variable to the client using inject-initial. How would that be possible?