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 (
$setStack = setStack
return () => {
$setStack = null
+ $nextKey = 0
}
}, [])