Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix for #804
  • Loading branch information
akomm committed Jul 19, 2017
commit 40f83464da624e0866fc4a2af8af27d059a886bc
6 changes: 6 additions & 0 deletions src/graphql.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,12 @@ export default function graphql<

render() {
if (this.shouldSkip()) {
if (operationOptions.withRef) {
return createElement(
WrappedComponent,
assign({}, this.props, { ref: 'wrappedInstance' }),
);
}
return createElement(WrappedComponent, this.props);
}

Expand Down