You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -86,7 +135,7 @@ import BottomScrollListener from 'react-bottom-scroll-listener';
86
135
87
136
<BottomScrollListener onBottom={callback}>
88
137
{(scrollRef) =><div ref={scrollRef}>Callback will be invoked when this container is scrolled to bottom.</div>}
89
-
</BottomScrollListener>
138
+
</BottomScrollListener>;
90
139
```
91
140
92
141
> Those are some weird children, what's going on?
@@ -103,7 +152,7 @@ difficult to attach event listeners for scrolling to an arbitrary element.
103
152
| debounce | number | 200 | milliseconds, how much debounce there should be on the callback |
104
153
| offset | number | 0 | offset from bottom in pixels. E.g. 300 if it should invoke `onBottom` 300px before the bottom. |
105
154
| debounceOptions | DebounceOptions | {leading: true} | see the lodash.debounce options: see https://lodash.com/docs/4.17.15#debounce|
106
-
| triggerOnNoScroll | boolean | false | if container is too short, enables a trigger of the callback if that happens |
155
+
| triggerOnNoScroll | boolean | false | if container is too short, enables a trigger of the callback if that happens |
107
156
| children | React.Node _or_ Function | null | Not required, but you can use this to wrap your components. Most useful when you have some conditional rendering. If this is a function, that function will receive a React.RefObject that _needs_ to be passed to a child element. This element will then be used as the scroll container. |
0 commit comments