Skip to content

Commit

Permalink
fix: don't return from startTransition (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcansh authored Nov 28, 2022
1 parent 55ec10e commit cd681fd
Show file tree
Hide file tree
Showing 68 changed files with 204 additions and 204 deletions.
6 changes: 3 additions & 3 deletions __template/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions _official-blog-tutorial/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions _official-jokes/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions _official-realtime-app/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions basic/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions bullmq-task-queue/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions catch-boundary/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions client-only-components/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions client-side-validation/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions collected-notes/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions combobox-resource-route/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions dark-mode/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions dataloader/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions file-and-cloudinary-upload/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions file-and-s3-upload/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions firebase/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions form-to-notion-db/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions framer-motion/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions framer-route-animation/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions gdpr-cookie-consent/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions google-analytics/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
6 changes: 3 additions & 3 deletions graphql-api/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";

const hydrate = () =>
startTransition(() =>
startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
);
);
});

if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
Expand Down
Loading

0 comments on commit cd681fd

Please sign in to comment.