Skip to content

remix/node-hmr · Interface

View Source

HmrReadyFetchOptions

Summary

Options for createHmrReadyFetch.

Signature

interface HmrReadyFetchOptions {
  shouldRetry?: (context: HmrReadyFetchRetryContext) => boolean | Promise<boolean>
}

Properties

shouldRetry

Determines whether a response or thrown error should be retried if the runner moves to a new generation while the request is in flight. Defaults to retrying GET and HEAD requests when the fetch throws or returns 502, 503, or 504.