@intrig/core 0.0.14-3 → 0.0.14-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.js +1 -1
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -7528,7 +7528,7 @@ export function useTransientCall<T, E = unknown>({
|
|
|
7528
7528
|
errorSchema?: ZodSchema<T>
|
|
7529
7529
|
}): [(request: RequestType) => Promise<T>, () => void] {
|
|
7530
7530
|
const ctx = useContext(Context);
|
|
7531
|
-
const controller = useRef<AbortController>();
|
|
7531
|
+
const controller = useRef<AbortController>(null);
|
|
7532
7532
|
|
|
7533
7533
|
const call = useCallback(
|
|
7534
7534
|
async (request: RequestType)=> {
|