diff options
author | crupest <crupest@outlook.com> | 2021-05-16 19:56:05 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-05-16 19:56:05 +0800 |
commit | 07afe9dea19920a95391e5aa2f356264ee563916 (patch) | |
tree | 338722e85db5add8cc92ed0c77c9f971de4df685 /FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx | |
parent | 02bf6c7e92fbd18d8409f8c6b84717aaf4d5664b (diff) | |
download | timeline-07afe9dea19920a95391e5aa2f356264ee563916.tar.gz timeline-07afe9dea19920a95391e5aa2f356264ee563916.tar.bz2 timeline-07afe9dea19920a95391e5aa2f356264ee563916.zip |
fix: Enhance logic of signalr.
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx')
-rw-r--r-- | FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx index 4c0cc8e3..81a3c179 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx @@ -12,7 +12,6 @@ import TimelinePostEdit from "./TimelinePostEdit"; import useReverseScrollPositionRemember from "@/utilities/useReverseScrollPositionRemember"; import { generatePalette, setPalette } from "@/palette"; -import { getTimelinePostUpdate as getTimelinePostUpdate$ } from "@/services/timeline"; export interface TimelinePageCardProps { timeline: HttpTimelineInfo; @@ -92,17 +91,6 @@ const TimelinePageTemplate: React.FC<TimelinePageTemplateProps> = (props) => { setTimelineReloadKey((old) => old + 1); }; - React.useEffect(() => { - const timelinePostUpdate$ = getTimelinePostUpdate$(timelineName); - const subscription = timelinePostUpdate$.subscribe(() => { - setTimelineReloadKey((old) => old + 1); - }); - - return () => { - subscription.unsubscribe(); - }; - }, [timelineName]); - const onPostEditHeightChange = React.useCallback((height: number): void => { setBottomSpaceHeight(height); if (height === 0) { |