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
Copy file name to clipboardExpand all lines: README.md
+19-12Lines changed: 19 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,14 +153,18 @@ argument for the hooks.
153
153
|**threshold**| number \| number[]| 0 | false | Number between 0 and 1 indicating the percentage that should be visible before triggering. Can also be an array of numbers, to create multiple trigger points. |
154
154
|**triggerOnce**| boolean | false | false | Only trigger this method once |
155
155
156
-
> ⚠️ When passing an array to `threshold`, store the array in a constant to avoid
157
-
> the component re-rendering too often. For example:
156
+
> ⚠️ When passing an array to `threshold`, store the array in a constant to
157
+
> avoid the component re-rendering too often. For example:
158
158
159
159
```js
160
-
constTHRESHOLD= [0.25, 0.5, 0.75];// Store multiple thresholds in a constant
160
+
constTHRESHOLD= [0.25, 0.5, 0.75] // Store multiple thresholds in a constant
0 commit comments