fix(bug): Main scrollbar jumps #5961 (process once only) (#10037)

This commit is contained in:
YU
2024-02-21 14:47:40 +09:00
committed by GitHub
parent 2bbd1bfc53
commit ab74c1e948

View File

@@ -1134,7 +1134,7 @@
([content-fn]
(lazy-visible content-fn nil))
([content-fn {:keys [trigger-once? _debug-id]
:or {trigger-once? false}}]
:or {trigger-once? true}}]
(let [[visible? set-visible!] (rum/use-state false)
root-margin 100
inViewState (useInView #js {:rootMargin (str root-margin "px")