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

Add resolve feature #42

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add resolve feature #42

wants to merge 3 commits into from

Conversation

sars
Copy link

@sars sars commented Jan 15, 2016

Now we can control Components interface for loading async data

@ryanflorence
Copy link
Owner

Add a test and I'll merge. Thanks :)

@sars
Copy link
Author

sars commented Jan 17, 2016

@ryanflorence Added

])

function resolver(Component, params, cb) {
Component.loadProps(params, cb, 'check')
Copy link
Owner

Choose a reason for hiding this comment

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

this would pass even w/o your changes, right? Maybe switch the name from loadProps to resolveProps or something.

Copy link
Author

Choose a reason for hiding this comment

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

It's impossible. there a lot of places where we are checking that loadProps method exists
We need to use this method now...

Copy link
Author

Choose a reason for hiding this comment

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

#42 (diff)

this will work only with resolver feature

@sars
Copy link
Author

sars commented Jan 20, 2016

@ryanflorence Done, check it please...
Also, please, have a look at https://github.com/Rezonans/redux-async-connect
Do you like this idea - to sync props with state?..

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.

None yet

2 participants