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: src/Feliz/React/React.fs
+1-29Lines changed: 1 addition & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -208,20 +208,6 @@ useEffect(() => {
208
208
[<Hook>]
209
209
static member inlineuseEffectOnce(setup:unit ->unit):unit = React.useEffect (setup,[||])
210
210
211
-
/// The `useEffect` hook that creates a disposable effect for React function components.
212
-
/// This effect has no dependencies which means the effect is re-executed on every re-render.
213
-
/// To make the effect run once (for example you subscribe once to web sockets) then provide an empty array
214
-
/// for the dependencies: `React.useEffect(disposableEffect, [| |])`.
215
-
[<Hook>]
216
-
static member inlineuseEffectOnce(setup:Func<unit,(unit -> unit)>):unit =
217
-
JsInterop.emitJsExpr
218
-
(setup)
219
-
"import {useEffect} from 'react';
220
-
useEffect(() => {
221
-
const setup = $0();
222
-
return setup;
223
-
}, []);"
224
-
225
211
/// The `useEffect` hook that creates a disposable effect for React function components.
226
212
/// This effect has no dependencies which means the effect is re-executed on every re-render.
227
213
/// To make the effect run once (for example you subscribe once to web sockets) then provide an empty array
@@ -308,27 +294,13 @@ useLayoutEffect(() => {
308
294
/// The signature is identical to useEffect, but it fires synchronously after all DOM mutations. Use this to read layout from the DOM and synchronously re-render. Updates scheduled inside useLayoutEffect will be flushed synchronously, before the browser has a chance to paint.
309
295
static member inlineuseLayoutEffectOnce(setup:unit ->unit):unit = React.useLayoutEffect (setup,[||])
310
296
311
-
/// The `useLayoutEffect` hook that creates a disposable effect for React function components.
312
-
/// This effect has no dependencies which means the effect is re-executed on every re-render.
313
-
/// To make the effect run once (for example you subscribe once to web sockets) then provide an empty array
314
-
/// for the dependencies: `React.useLayoutEffect(disposableEffect, [| |])`.
315
-
/// The signature is identical to useEffect, but it fires synchronously after all DOM mutations. Use this to read layout from the DOM and synchronously re-render. Updates scheduled inside useLayoutEffect will be flushed synchronously, before the browser has a chance to paint.
316
-
static member inlineuseLayoutEffectOnce(setup:Func<unit,(unit -> unit)>):unit =
317
-
JsInterop.emitJsExpr
318
-
(setup)
319
-
"import {useLayoutEffect} from 'react';
320
-
useLayoutEffect(() => {
321
-
const setup = $0();
322
-
return setup;
323
-
}, []);"
324
-
325
297
/// The `useLayoutEffect` hook that creates a disposable effect for React function components.
326
298
/// This effect has no dependencies which means the effect is re-executed on every re-render.
327
299
/// To make the effect run once (for example you subscribe once to web sockets) then provide an empty array
328
300
/// for the dependencies: `React.useLayoutEffect(disposableEffect, [| |])`.
329
301
/// The signature is identical to useEffect, but it fires synchronously after all DOM mutations. Use this to read layout from the DOM and synchronously re-render. Updates scheduled inside useLayoutEffect will be flushed synchronously, before the browser has a chance to paint.
330
302
static member inlineuseLayoutEffectOnce(setup:unit ->(unit ->unit)):unit =
331
-
React.useLayoutEffectOnce(Func<_,_> setup)
303
+
React.useLayoutEffect(Func<_,_> setup,[||])
332
304
333
305
/// The `useLayoutEffect` hook that creates a disposable effect for React function components.
334
306
/// This effect has no dependencies which means the effect is re-executed on every re-render.
0 commit comments