Skip to content

Commit cd681fd

Browse files
authored
fix: don't return from startTransition (#91)
1 parent 55ec10e commit cd681fd

File tree

68 files changed

+204
-204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+204
-204
lines changed

__template/app/entry.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
33
import { hydrateRoot } from "react-dom/client";
44

55
const hydrate = () =>
6-
startTransition(() =>
6+
startTransition(() => {
77
hydrateRoot(
88
document,
99
<StrictMode>
1010
<RemixBrowser />
1111
</StrictMode>
12-
)
13-
);
12+
);
13+
});
1414

1515
if (window.requestIdleCallback) {
1616
window.requestIdleCallback(hydrate);

_official-blog-tutorial/app/entry.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
33
import { hydrateRoot } from "react-dom/client";
44

55
const hydrate = () =>
6-
startTransition(() =>
6+
startTransition(() => {
77
hydrateRoot(
88
document,
99
<StrictMode>
1010
<RemixBrowser />
1111
</StrictMode>
12-
)
13-
);
12+
);
13+
});
1414

1515
if (window.requestIdleCallback) {
1616
window.requestIdleCallback(hydrate);

_official-jokes/app/entry.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
33
import { hydrateRoot } from "react-dom/client";
44

55
const hydrate = () =>
6-
startTransition(() =>
6+
startTransition(() => {
77
hydrateRoot(
88
document,
99
<StrictMode>
1010
<RemixBrowser />
1111
</StrictMode>
12-
)
13-
);
12+
);
13+
});
1414

1515
if (window.requestIdleCallback) {
1616
window.requestIdleCallback(hydrate);

_official-realtime-app/app/entry.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
33
import { hydrateRoot } from "react-dom/client";
44

55
const hydrate = () =>
6-
startTransition(() =>
6+
startTransition(() => {
77
hydrateRoot(
88
document,
99
<StrictMode>
1010
<RemixBrowser />
1111
</StrictMode>
12-
)
13-
);
12+
);
13+
});
1414

1515
if (window.requestIdleCallback) {
1616
window.requestIdleCallback(hydrate);

basic/app/entry.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
33
import { hydrateRoot } from "react-dom/client";
44

55
const hydrate = () =>
6-
startTransition(() =>
6+
startTransition(() => {
77
hydrateRoot(
88
document,
99
<StrictMode>
1010
<RemixBrowser />
1111
</StrictMode>
12-
)
13-
);
12+
);
13+
});
1414

1515
if (window.requestIdleCallback) {
1616
window.requestIdleCallback(hydrate);

bullmq-task-queue/app/entry.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
33
import { hydrateRoot } from "react-dom/client";
44

55
const hydrate = () =>
6-
startTransition(() =>
6+
startTransition(() => {
77
hydrateRoot(
88
document,
99
<StrictMode>
1010
<RemixBrowser />
1111
</StrictMode>
12-
)
13-
);
12+
);
13+
});
1414

1515
if (window.requestIdleCallback) {
1616
window.requestIdleCallback(hydrate);

catch-boundary/app/entry.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
33
import { hydrateRoot } from "react-dom/client";
44

55
const hydrate = () =>
6-
startTransition(() =>
6+
startTransition(() => {
77
hydrateRoot(
88
document,
99
<StrictMode>
1010
<RemixBrowser />
1111
</StrictMode>
12-
)
13-
);
12+
);
13+
});
1414

1515
if (window.requestIdleCallback) {
1616
window.requestIdleCallback(hydrate);

client-only-components/app/entry.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
33
import { hydrateRoot } from "react-dom/client";
44

55
const hydrate = () =>
6-
startTransition(() =>
6+
startTransition(() => {
77
hydrateRoot(
88
document,
99
<StrictMode>
1010
<RemixBrowser />
1111
</StrictMode>
12-
)
13-
);
12+
);
13+
});
1414

1515
if (window.requestIdleCallback) {
1616
window.requestIdleCallback(hydrate);

client-side-validation/app/entry.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
33
import { hydrateRoot } from "react-dom/client";
44

55
const hydrate = () =>
6-
startTransition(() =>
6+
startTransition(() => {
77
hydrateRoot(
88
document,
99
<StrictMode>
1010
<RemixBrowser />
1111
</StrictMode>
12-
)
13-
);
12+
);
13+
});
1414

1515
if (window.requestIdleCallback) {
1616
window.requestIdleCallback(hydrate);

collected-notes/app/entry.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
33
import { hydrateRoot } from "react-dom/client";
44

55
const hydrate = () =>
6-
startTransition(() =>
6+
startTransition(() => {
77
hydrateRoot(
88
document,
99
<StrictMode>
1010
<RemixBrowser />
1111
</StrictMode>
12-
)
13-
);
12+
);
13+
});
1414

1515
if (window.requestIdleCallback) {
1616
window.requestIdleCallback(hydrate);

0 commit comments

Comments
 (0)