@applicaster/quick-brick-core 12.0.0-rc.85 → 12.0.0-rc.87
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.
|
@@ -414,9 +414,12 @@ export function NavigationProvider({ children }: Props) {
|
|
|
414
414
|
}
|
|
415
415
|
};
|
|
416
416
|
|
|
417
|
-
const handleHookCancel = ({ hookPlugin }, dispose) => {
|
|
418
|
-
|
|
419
|
-
|
|
417
|
+
const handleHookCancel = ({ hookPlugin, callback }, dispose) => {
|
|
418
|
+
dispose();
|
|
419
|
+
setStartUpHooks(false);
|
|
420
|
+
|
|
421
|
+
if (callback && typeof callback === "function") {
|
|
422
|
+
callback();
|
|
420
423
|
}
|
|
421
424
|
|
|
422
425
|
if (hookPlugin.isModalHook()) {
|
|
@@ -482,7 +485,13 @@ export function NavigationProvider({ children }: Props) {
|
|
|
482
485
|
return false;
|
|
483
486
|
}, [pluginConfigurations, plugins, rivers]);
|
|
484
487
|
|
|
485
|
-
const [startUpHooks,
|
|
488
|
+
const [startUpHooks, _setStartUpHooks] = React.useState(checkStartUpHooks);
|
|
489
|
+
const currentStartUpHooks = React.useRef(checkStartUpHooks);
|
|
490
|
+
|
|
491
|
+
const setStartUpHooks = (value) => {
|
|
492
|
+
_setStartUpHooks(value);
|
|
493
|
+
currentStartUpHooks.current = value;
|
|
494
|
+
};
|
|
486
495
|
|
|
487
496
|
const handleHookComplete =
|
|
488
497
|
(navigationAction, targetRoute, { screen, options }) =>
|
|
@@ -490,7 +499,7 @@ export function NavigationProvider({ children }: Props) {
|
|
|
490
499
|
if (hookPlugin?.lastHook) {
|
|
491
500
|
dispose({ disposeAll: true });
|
|
492
501
|
|
|
493
|
-
startUpHooks && setStartUpHooks(false);
|
|
502
|
+
startUpHooks.current && setStartUpHooks(false);
|
|
494
503
|
}
|
|
495
504
|
|
|
496
505
|
dispatch(
|
|
@@ -599,7 +608,10 @@ export function NavigationProvider({ children }: Props) {
|
|
|
599
608
|
targetScreen: screen,
|
|
600
609
|
rivers,
|
|
601
610
|
plugins,
|
|
602
|
-
startUpHooksData: {
|
|
611
|
+
startUpHooksData: {
|
|
612
|
+
startUpHooks: currentStartUpHooks.current,
|
|
613
|
+
setStartUpHooks,
|
|
614
|
+
},
|
|
603
615
|
};
|
|
604
616
|
|
|
605
617
|
HooksManager(hooksOptions)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-core",
|
|
3
|
-
"version": "12.0.0-rc.
|
|
3
|
+
"version": "12.0.0-rc.87",
|
|
4
4
|
"description": "Core package for Applicaster's Quick Brick App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@applicaster/applicaster-types": "12.0.0-rc.
|
|
34
|
-
"@applicaster/quick-brick-core-plugins": "12.0.0-rc.
|
|
35
|
-
"@applicaster/zapp-pipes-v2-client": "12.0.0-rc.
|
|
36
|
-
"@applicaster/zapp-react-native-bridge": "12.0.0-rc.
|
|
37
|
-
"@applicaster/zapp-react-native-redux": "12.0.0-rc.
|
|
38
|
-
"@applicaster/zapp-react-native-ui-components": "12.0.0-rc.
|
|
39
|
-
"@applicaster/zapp-react-native-utils": "12.0.0-rc.
|
|
33
|
+
"@applicaster/applicaster-types": "12.0.0-rc.87",
|
|
34
|
+
"@applicaster/quick-brick-core-plugins": "12.0.0-rc.87",
|
|
35
|
+
"@applicaster/zapp-pipes-v2-client": "12.0.0-rc.87",
|
|
36
|
+
"@applicaster/zapp-react-native-bridge": "12.0.0-rc.87",
|
|
37
|
+
"@applicaster/zapp-react-native-redux": "12.0.0-rc.87",
|
|
38
|
+
"@applicaster/zapp-react-native-ui-components": "12.0.0-rc.87",
|
|
39
|
+
"@applicaster/zapp-react-native-utils": "12.0.0-rc.87",
|
|
40
40
|
"atob": "^2.1.2",
|
|
41
41
|
"axios": "^0.28.0",
|
|
42
42
|
"btoa": "^1.2.1",
|