@umituz/react-native-ai-generation-content 1.83.6 → 1.83.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-ai-generation-content",
3
- "version": "1.83.6",
3
+ "version": "1.83.7",
4
4
  "description": "Provider-agnostic AI generation orchestration for React Native with result preview components",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -42,9 +42,10 @@ export function useVideoQueueGeneration(props: UseVideoQueueGenerationProps): Us
42
42
  isPollingRef.current = false;
43
43
  consecutiveErrorsRef.current = 0;
44
44
  pollStartTimeRef.current = null;
45
- creationIdRef.current = null;
46
- requestIdRef.current = null;
47
- modelRef.current = null;
45
+ // NOTE: Do NOT null creationIdRef/requestIdRef/modelRef here.
46
+ // In-flight poll callbacks may still resolve after unmount and need
47
+ // these refs to properly save the completed generation to Firestore.
48
+ // They are cleaned up by resetRefs() after handleComplete/handleError.
48
49
  setIsGenerating(false);
49
50
  };
50
51
  }, [clearPolling]);