interface: removed extraneous startApp and no longer stopApp on unmount

This commit is contained in:
Logan Allen 2020-10-06 15:18:22 -05:00
parent fb261dc93c
commit b0c18ad279
2 changed files with 0 additions and 21 deletions

View File

@ -52,19 +52,6 @@ export function Skeleton(props: SkeletonProps) {
[publishConfig, linkConfig, chatConfig]
);
useEffect(() => {
props.api.publish.fetchNotebooks();
props.subscription.startApp("chat");
props.subscription.startApp("publish");
props.subscription.startApp("graph");
return () => {
props.subscription.stopApp("chat");
props.subscription.stopApp("publish");
props.subscription.stopApp("graph");
};
}, []);
return (
<Body
display="grid"

View File

@ -34,14 +34,6 @@ export default class Landscape extends Component<LandscapeProps, {}> {
}
componentWillUnmount() {
this.props.subscription.stopApp('groups')
this.props.subscription.stopApp('chat')
this.props.subscription.stopApp('publish');
this.props.subscription.stopApp('graph');
}
render() {
const { props } = this;