Last active
February 28, 2018 21:18
-
-
Save jamesplease/521079be3b0f0d81bd711e789a2d7f83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Composer from 'react-composer'; | |
import Component from 'react-component-component'; | |
<Composer | |
components={[ | |
<Fetch {...fetchProps} />, | |
([firstResult]) => { | |
// Ultimately, you return a Fetch that is lazy. | |
// | |
// When `firstResult` changes from `loading` to succeeded, | |
// you call `doFetch` | |
} | |
]} | |
/> | |
{(results) => {}} | |
</Composer> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment