Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Use getInitialProps API instead of breaking CWM #1

Open
djgrant opened this issue May 18, 2017 · 0 comments
Open

Use getInitialProps API instead of breaking CWM #1

djgrant opened this issue May 18, 2017 · 0 comments

Comments

@djgrant
Copy link
Owner

djgrant commented May 18, 2017

To enable custom renderers to resolve a component's data requirements asynchronously, react-quest currently expects the render to resolve componentWillMount(). This is not suitable as it breaks the react component contract. A better solution - one that the community seems to have converged on - is extending the component contract with a getInitialProps method.

Related: FormidableLabs/rapscallion#51 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant