@applicaster/zapp-react-native-ui-components 12.0.27-alpha.2213255057 → 12.0.27-alpha.5964160451
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.
|
@@ -63,20 +63,9 @@ export const useLoadingState = (
|
|
|
63
63
|
|
|
64
64
|
const state = loadingState.current.getValue();
|
|
65
65
|
|
|
66
|
-
// Fix: Only advance index sequentially, don't jump to highest loaded component
|
|
67
|
-
let newIndex = state.index;
|
|
68
|
-
if (payload === state.index + 1) {
|
|
69
|
-
// Only advance if this is the next sequential component
|
|
70
|
-
newIndex = payload;
|
|
71
|
-
} else if (payload < state.index) {
|
|
72
|
-
// If a lower index loads after higher ones, don't change the index
|
|
73
|
-
// This prevents the race condition that causes unmounting
|
|
74
|
-
newIndex = state.index;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
66
|
const newLoadingState = {
|
|
78
67
|
...state,
|
|
79
|
-
index:
|
|
68
|
+
index: state.index < payload ? payload : state.index,
|
|
80
69
|
done: isDone,
|
|
81
70
|
};
|
|
82
71
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-ui-components",
|
|
3
|
-
"version": "12.0.27-alpha.
|
|
3
|
+
"version": "12.0.27-alpha.5964160451",
|
|
4
4
|
"description": "Applicaster Zapp React Native ui components for the Quick Brick App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"redux-mock-store": "^1.5.3"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@applicaster/applicaster-types": "12.0.27-alpha.
|
|
38
|
-
"@applicaster/zapp-react-native-bridge": "12.0.27-alpha.
|
|
39
|
-
"@applicaster/zapp-react-native-redux": "12.0.27-alpha.
|
|
40
|
-
"@applicaster/zapp-react-native-utils": "12.0.27-alpha.
|
|
37
|
+
"@applicaster/applicaster-types": "12.0.27-alpha.5964160451",
|
|
38
|
+
"@applicaster/zapp-react-native-bridge": "12.0.27-alpha.5964160451",
|
|
39
|
+
"@applicaster/zapp-react-native-redux": "12.0.27-alpha.5964160451",
|
|
40
|
+
"@applicaster/zapp-react-native-utils": "12.0.27-alpha.5964160451",
|
|
41
41
|
"promise": "^8.3.0",
|
|
42
42
|
"react-router-native": "^5.1.2",
|
|
43
43
|
"url": "^0.11.0",
|