@umituz/react-native-ai-generation-content 1.83.5 → 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.
|
|
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",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import { useMemo } from "react";
|
|
8
8
|
import type { Creation } from "../../domain/entities/Creation";
|
|
9
|
-
import {
|
|
9
|
+
import { getCategoryForCreation } from "../../domain/types/creation-categories";
|
|
10
10
|
|
|
11
11
|
interface UseCreationsFilterProps {
|
|
12
12
|
readonly creations: Creation[] | undefined;
|
|
@@ -37,7 +37,7 @@ export function useCreationsFilter({
|
|
|
37
37
|
|
|
38
38
|
// Media filter
|
|
39
39
|
if (mediaFilter !== "all") {
|
|
40
|
-
const category =
|
|
40
|
+
const category = getCategoryForCreation(creation);
|
|
41
41
|
if (category !== mediaFilter) {
|
|
42
42
|
return false;
|
|
43
43
|
}
|
|
@@ -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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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]);
|