Skip to content

Commit

Permalink
use uuid, not useId
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Apr 16, 2024
1 parent 0916027 commit 4615c72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client-react-streaming/src/PreloadQuery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
QueryReference,
} from "@apollo/client";
import type { ReactNode } from "react";
import React, { useId } from "react";
import React from "react";
import { serializeOptions } from "./DataTransportAbstraction/transportedOptions.js";
import { createTransportedQueryRef } from "./transportedQueryRef.js";

Expand Down Expand Up @@ -52,7 +52,7 @@ export function PreloadQuery<TData, TVariables extends OperationVariables>({
.then((client) => client.query<TData, TVariables>(preloadOptions))
.then(sanitizeForTransport);

const queryKey = useId();
const queryKey = crypto.randomUUID();

return (
<SimulatePreloadedQuery<TData>
Expand Down

0 comments on commit 4615c72

Please sign in to comment.