mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 13:54:20 +03:00
interface: removed extraneous startApp and no longer stopApp on unmount
This commit is contained in:
parent
fb261dc93c
commit
b0c18ad279
@ -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"
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user