Skip to content

Commit

Permalink
refactor(react): add milliseconds abbreviation (ms) to timeout option
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori committed Jan 23, 2023
1 parent 90b64b0 commit 40d50f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/remix-react/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1536,11 +1536,11 @@ export const LiveReload =
? () => null
: function LiveReload({
port = Number(process.env.REMIX_DEV_SERVER_WS_PORT || 8002),
timeout = 1000,
timeoutMs = 1000,
nonce = undefined,
}: {
port?: number;
timeout?: number;
timeoutMs?: number;
/**
* @deprecated this property is no longer relevant.
*/
Expand Down Expand Up @@ -1584,7 +1584,7 @@ export const LiveReload =
remixLiveReloadConnect({
onOpen: () => window.location.reload(),
}),
${String(timeout)}
${String(timeoutMs)}
);
}
};
Expand Down

0 comments on commit 40d50f0

Please sign in to comment.