Skip to content

Commit

Permalink
Pass more information to getComponent
Browse files Browse the repository at this point in the history
This commit passes the `context` object as a 2nd arg to
getComponent. The point of this is so that getComponent can have access
to the props objects as well as any other future items we decide
to pass into context.
  • Loading branch information
goatslacker committed Sep 9, 2016
1 parent 82fb06f commit efbe9aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/BatchManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class BatchManager {

const { getComponent } = this.config;

const result = getComponent(name);
const result = getComponent(name, context);

return Promise.resolve(result).then((renderFn) => {
// ensure that we have this component registered
Expand Down

0 comments on commit efbe9aa

Please sign in to comment.