bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/ping-pong/container.jsx

23 lines
507 B
React
Raw Normal View History

2019-07-02 03:00:27 +08:00
import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import PingPong from '/imports/api/ping-pong';
import { makeCall } from '/imports/ui/services/api';
class PlaceHolderComponent extends React.Component {
shouldComponentUpdate() {
return false;
}
render() {
return null;
}
}
export default withTracker(() => {
PingPong.find({}).observe({
added: () => makeCall('ping'),
changed: () => makeCall('ping'),
});
return {};
})(PlaceHolderComponent);