SuspenseViewOptions interface

Module @runic-artifex/react in @runic-artifex/react 0.23.0

interface SuspenseViewOptions

No documentation.

Properties

releaseTimeout

readonly releaseTimeout?: number;

Milliseconds that a connection no mounted component has claimed, or a failure no retrySuspenseView has cleared, stays cached: a whole number from 1 to 2147483647, or Infinity to keep it until it is claimed or retried. Defaults to 10000. This is not a connection timeout. Components that share a connect function share one entry, which keeps the largest value any of them passed. Other values throw a RangeError.

keepAlive

readonly keepAlive?: number;

Milliseconds the client stays connected after the last component that used it unmounted, so a component that mounts again (StrictMode, Fast Refresh, <Activity>, A→B→A navigation) renders at once instead of suspending. A whole number from 0 to 2147483647; 0 disposes at once. Defaults to 2000.