[InstantSearch] `renderToString` should be passed to getServerState(<App/>, { renderToString })

I am using the InstantSearch package in a Next.js application and keep seeing the following warning in the terminal logs.

[InstantSearch] renderToString should be passed to getServerState(, { renderToString })

I am passing the serverState as a prop from the getStaticProps function for the page and passing the page as a component.

Can someone please tell me how to get rid of this warning?