Skip to content

Commit 80c779a

Browse files
committed
Pass error to render prop
1 parent 67b7c8a commit 80c779a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/DataSet.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type { RenderProp } from './Query';
77
import { selectResources } from './selectors';
88

99
type CommonProps = {|
10+
error?: Error,
1011
children: RenderProp,
1112
loading: boolean,
1213
|};
@@ -27,8 +28,15 @@ export class DataSet extends PureComponent<ConnectedProps> {
2728
};
2829

2930
render() {
30-
const { children, loading, resources } = this.props;
31+
const {
32+
children,
33+
error,
34+
loading,
35+
resources,
36+
} = this.props;
37+
3138
return children({
39+
error,
3240
loading,
3341
resources,
3442
});

0 commit comments

Comments
 (0)