Skip to content

Conversation

jrmarqueshd
Copy link

This Pull Request only change in README.md ReactJs Example from Class Component to Functional Component.

)
}

export async function getStaticProps() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part should be reverted. It's mandatory to set the Cache-Control header for the cache server to store this fragment in cache.

However we should use getServerSideProps() instead of getServerInitialProps(), which is now recommended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants