Skip to content
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

Provide errors for failed async props #1

Open
jdolle opened this issue Sep 25, 2017 · 0 comments
Open

Provide errors for failed async props #1

jdolle opened this issue Sep 25, 2017 · 0 comments
Assignees
Milestone

Comments

@jdolle
Copy link
Owner

jdolle commented Sep 25, 2017

I propose to wrap component render function to provide props as the first argument and errors as the second.

Wrap SFCs to do the same.

By solving the problem like this, the method of rendering components is unified. No more this.props.

However, by solving it this way we also add a little "magic" on top of React. An alternative might be to provide this.errors for components.

@jdolle jdolle self-assigned this Sep 25, 2017
@jdolle jdolle added this to the 0.2.0 milestone Sep 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant