aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tubo/views/channel.cljs
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2023-10-22 20:39:41 +0200
committerMiguel Ángel Moreno <mail@migalmoreno.com>2023-10-22 20:39:41 +0200
commitea77d66a9e45d117a49da1ee7802e94f21ebc445 (patch)
tree74bba17e1257e6f76fe33e093eef354e53d1dc41 /src/frontend/tubo/views/channel.cljs
parent821f50f900d855fbbf6fb3625ed66555a9f7ae98 (diff)
fix(frontend): remove page scroll data from re-frame db
Diffstat (limited to 'src/frontend/tubo/views/channel.cljs')
-rw-r--r--src/frontend/tubo/views/channel.cljs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/frontend/tubo/views/channel.cljs b/src/frontend/tubo/views/channel.cljs
index ee5459f..9318c0e 100644
--- a/src/frontend/tubo/views/channel.cljs
+++ b/src/frontend/tubo/views/channel.cljs
@@ -14,8 +14,7 @@
service-color @(rf/subscribe [:service-color])
page-loading? @(rf/subscribe [:show-page-loading])
pagination-loading? @(rf/subscribe [:show-pagination-loading])
- page-scroll @(rf/subscribe [:page-scroll])
- scrolled-to-bottom? (= page-scroll (.-scrollHeight js/document.body))]
+ scrolled-to-bottom? @(rf/subscribe [:scrolled-to-bottom])]
(when scrolled-to-bottom?
(rf/dispatch [::events/channel-pagination url next-page-url]))
[:div.flex.flex-col.items-center.px-5.py-2.flex-auto