diff --git a/lib/createCallable/index.tsx b/lib/createCallable/index.tsx index 95f99ed..636a06b 100644 --- a/lib/createCallable/index.tsx +++ b/lib/createCallable/index.tsx @@ -11,11 +11,12 @@ export function createCallable

( UserComponent: UserComponentType, ): Callable { let $setStack: PrivateStackStateSetter | null = null + let $nextKey = 0 const call: CallFunction = (props) => { if ($setStack === null) throw new Error('No found!') - const key = globalThis.crypto.randomUUID() + const key = String($nextKey++) const promise = Promise.withResolvers() const end = (response: R) => { @@ -39,6 +40,7 @@ export function createCallable

( $setStack = setStack return () => { $setStack = null + $nextKey = 0 } }, [])