2d2c7626e3
Based on https://github.com/vercel/next.js/pull/13607 - I created a new PR as I can't push changes to the initial PR. Migrated the Apollo client to use SSG, also removed the link to the live demo because I don't know who the owner is or how to update the deployment. The implementation is pretty simple and will be added to all the other Apollo examples
21 lines
683 B
JavaScript
21 lines
683 B
JavaScript
import App from '../components/App'
|
||
import InfoBox from '../components/InfoBox'
|
||
import Header from '../components/Header'
|
||
import Submit from '../components/Submit'
|
||
import PostList from '../components/PostList'
|
||
|
||
const ClientOnlyPage = (props) => (
|
||
<App>
|
||
<Header />
|
||
<InfoBox>
|
||
ℹ️ This page shows how use Apollo only in the client. If you{' '}
|
||
<a href="/client-only">reload</a> this page, you will see a loader since
|
||
Apollo didn't fetch any data on the server. This is useful when the page
|
||
doesn't have SEO requirements or blocking data fetching requirements.
|
||
</InfoBox>
|
||
<Submit />
|
||
<PostList />
|
||
</App>
|
||
)
|
||
|
||
export default ClientOnlyPage
|