Skip to content

LiveReload - Indefinite loop in Firefox #4692

Description

@Vivalldi

What version of Remix are you using?

v1.7.6

Steps to Reproduce

  1. create-remix using defaults
  2. Add a loader to app/routes/index.tsx that sleeps for 1 second
  3. Open http://localhost:3000 in Firefox Developer Edition (I'm using 108.0b6 (64-bit) macOS silicon)
  4. Make a change to the file to cause remix rebuild while the firefox window is in view (focus state doesn't seem to matter)
  5. Page continually reloads until window is no longer in view (focus state doesn't seem to matter)
export const loader: LoaderFunction = async () => {
        await new Promise((resolve) => setTimeout(resolve,1000));
        const data = { key: "value" };
        return json(data);
}

Expected Behavior

The page should only live reload once

Actual Behavior

The page reloads in a looping manner. Normal behavior can be observed in chrome or by removing the sleeping timeout.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions