Skip to content

Commit 4d1e4ed

Browse files
committed
fix: store client id in state
1 parent 98c1783 commit 4d1e4ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ui/form/hooks/runner.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ SOFTWARE.
3434
*/
3535
/* eslint-enable */
3636

37-
import { useRef } from 'react';
37+
import { useRef, useState } from 'react';
3838
import {
3939
castToBoolean,
4040
DateTime,
@@ -56,7 +56,7 @@ import '../ui/blocks';
5656

5757
/* eslint-disable max-len */
5858
const useFormRunner = (props: IRunnerUIProps) => {
59-
const clientId = crypto.randomUUID();
59+
const [clientId] = useState(crypto.randomUUID);
6060

6161
const [runner, cache, l10n, , doAction] = useRunnerController({
6262
...props,

0 commit comments

Comments
 (0)