|
@ -119,7 +119,7 @@ const CommentListWithSubscription = withSubscription( |
|
|
const BlogPostWithSubscription = withSubscription( |
|
|
const BlogPostWithSubscription = withSubscription( |
|
|
BlogPost, |
|
|
BlogPost, |
|
|
(DataSource, props) => DataSource.getBlogPost(props.id) |
|
|
(DataSource, props) => DataSource.getBlogPost(props.id) |
|
|
}); |
|
|
); |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
The first parameter is the wrapped component. The second parameter retrieves the data we're interested in, given a `DataSource` and the current props. |
|
|
The first parameter is the wrapped component. The second parameter retrieves the data we're interested in, given a `DataSource` and the current props. |
|
|