diff options
author | crupest <crupest@outlook.com> | 2021-04-04 14:43:26 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-04 14:43:26 +0800 |
commit | 83678709f32c8f7e0e83efd93e4a493d1154bd6e (patch) | |
tree | 75b94d1d6937edcb7e27dea4513cb77cce8594ef /FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx | |
parent | 3ddbbd4c2719dbd6ba00d2d574a5d3f472e9d8ff (diff) | |
download | timeline-83678709f32c8f7e0e83efd93e4a493d1154bd6e.tar.gz timeline-83678709f32c8f7e0e83efd93e4a493d1154bd6e.tar.bz2 timeline-83678709f32c8f7e0e83efd93e4a493d1154bd6e.zip |
...
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx')
-rw-r--r-- | FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx index 704e51fb..1c8873f9 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx @@ -10,6 +10,8 @@ import { getAlertHost } from "@/services/alert"; import Timeline from "./Timeline"; import TimelinePostEdit from "./TimelinePostEdit"; +import useReverseScrollPositionRemember from "@/utilities/useReverseScrollPositionRemember"; + export interface TimelinePageCardProps { timeline: HttpTimelineInfo; collapse: boolean; @@ -35,6 +37,8 @@ const TimelinePageTemplate: React.FC<TimelinePageTemplateProps> = (props) => { HttpTimelineInfo | "loading" | "offline" | "notexist" | "error" >("loading"); + useReverseScrollPositionRemember(); + React.useEffect(() => { setTimeline("loading"); }, [timelineName]); |