How does prerender know when the page has fully rendered?

I am sending some data to the component via a createContainer. How will prerender know that the entire data has been fetched?

Currently all I get from the prerenderServiceUrl is a loader (which would show while the data is being fetched). Does it take a timeout option somewhere?

How are others solving this SEO issue (with or without prerender)? Any help would be appreciated.