We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc7fed3 commit deb64eeCopy full SHA for deb64ee
docs/api/mixins/AsyncState.md
@@ -81,8 +81,9 @@ var User = React.createClass({
81
activity: {}, // an immediate value (not a promise)
82
stream: getStreamingData(params.userID, function (chunk) {
83
// `getStreamingData` returns a promise, but also calls back as
84
- // data is received, giving use a chance to update the UI with
85
- // progress
+ // data is received, giving us a chance to update the UI with
+ // progress using the `AsyncState` specific `setState`
86
+ // function
87
buffer += chunk;
88
setState({ streamBuffer: buffer });
89
})
0 commit comments