Skip to content

Add/readme example stateless lifecycle #1558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Mar 29, 2017

Conversation

impronunciable
Copy link
Contributor

Fixes #1498

readme.md Outdated
@@ -215,6 +215,20 @@ For the initial page load, `getInitialProps` will execute on the server only. `g

_Note: `getInitialProps` can **not** be used in children components. Only in `pages`._

You can also define the `getInitialProps` lyfecicle method for stateless components:
Copy link
Contributor

Choose a reason for hiding this comment

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

lifecycle

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice catch

@arunoda
Copy link
Contributor

arunoda commented Mar 29, 2017

Looks great for me.

@arunoda arunoda merged commit 7699cbe into master Mar 29, 2017
@arunoda arunoda deleted the add/readme-example-stateless-lifecycle branch March 29, 2017 22:11
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy