diff --git a/packages/react-meteor-data/ReactMeteorData.jsx b/packages/react-meteor-data/ReactMeteorData.jsx
index c987f382..fc31d3a4 100644
--- a/packages/react-meteor-data/ReactMeteorData.jsx
+++ b/packages/react-meteor-data/ReactMeteorData.jsx
@@ -175,14 +175,23 @@ export default function connect(options) {
const { getMeteorData, pure = true } = expandedOptions;
const BaseComponent = pure ? ReactPureComponent : ReactComponent;
- return (WrappedComponent) => (
+
+ return (WrappedComponent) => {
class ReactMeteorDataComponent extends BaseComponent {
getMeteorData() {
- return getMeteorData(this.props);
+ const { forwardedRef, ...props } = this.props;
+
+ return getMeteorData(props);
}
+
render() {
- return ;
+ const { forwardedRef, ...props } = this.props;
+ return ;
}
}
- );
+
+ return React.forwardRef((props, ref) => (
+
+ ));
+ };
}