@applicaster/quick-brick-core 12.0.18-rc.0 → 12.0.19-alpha.1342029112

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.
@@ -35,7 +35,6 @@ import reducer, {
35
35
  setVideoModalOpen,
36
36
  setVideoPiP,
37
37
  } from "./navigator/reducer";
38
-
39
38
  import { HooksManager } from "@applicaster/zapp-react-native-utils/appUtils/HooksManager";
40
39
  import { HOOKS_EVENTS } from "@applicaster/zapp-react-native-utils/appUtils/HooksManager/constants";
41
40
 
@@ -424,7 +423,7 @@ export function NavigationProvider({ children }: Props) {
424
423
  closeLoadingOverlay();
425
424
  };
426
425
 
427
- const handleHookCancel = ({ hookPlugin, callback }, dispose) => {
426
+ const handleHookCancel = ({ hookPlugin, callback, abort }, dispose) => {
428
427
  dispose();
429
428
  setStartUpHooks(false);
430
429
 
@@ -432,10 +431,12 @@ export function NavigationProvider({ children }: Props) {
432
431
  callback();
433
432
  }
434
433
 
435
- if (hookPlugin.isModalHook()) {
436
- navigator.dismissModal();
437
- } else {
438
- goBack(true, true);
434
+ if (!abort) {
435
+ if (hookPlugin.isModalHook()) {
436
+ navigator.dismissModal();
437
+ } else {
438
+ goBack(true, true);
439
+ }
439
440
  }
440
441
 
441
442
  closeLoadingOverlay();
@@ -720,6 +721,20 @@ export function NavigationProvider({ children }: Props) {
720
721
  return currentStack;
721
722
  };
722
723
 
724
+ try {
725
+ const now = performance.now();
726
+ JSON.stringify(state);
727
+
728
+ logger.debug({
729
+ message: `Test JSON stringify state: ${performance.now() - now}`,
730
+ });
731
+ } catch (error) {
732
+ logger.error({
733
+ message: "Error while stringifying state",
734
+ data: { error },
735
+ });
736
+ }
737
+
723
738
  const navigator: QuickBrickAppNavigator = React.useMemo(
724
739
  () => ({
725
740
  activeRiver,
@@ -764,6 +779,7 @@ export function NavigationProvider({ children }: Props) {
764
779
  getStackForPathname,
765
780
  mainStack: state.stack.mainStack,
766
781
  }),
782
+ // TODO: WTF? JSON.stringify(state) compare entire screen data from zapp
767
783
  [rivers, plugins, JSON.stringify(state), appLaunched, startUpHooks]
768
784
  );
769
785
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/quick-brick-core",
3
- "version": "12.0.18-rc.0",
3
+ "version": "12.0.19-alpha.1342029112",
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.18-rc.0",
34
- "@applicaster/quick-brick-core-plugins": "12.0.18-rc.0",
35
- "@applicaster/zapp-pipes-v2-client": "12.0.18-rc.0",
36
- "@applicaster/zapp-react-native-bridge": "12.0.18-rc.0",
37
- "@applicaster/zapp-react-native-redux": "12.0.18-rc.0",
38
- "@applicaster/zapp-react-native-ui-components": "12.0.18-rc.0",
39
- "@applicaster/zapp-react-native-utils": "12.0.18-rc.0",
33
+ "@applicaster/applicaster-types": "12.0.19-alpha.1342029112",
34
+ "@applicaster/quick-brick-core-plugins": "12.0.19-alpha.1342029112",
35
+ "@applicaster/zapp-pipes-v2-client": "12.0.19-alpha.1342029112",
36
+ "@applicaster/zapp-react-native-bridge": "12.0.19-alpha.1342029112",
37
+ "@applicaster/zapp-react-native-redux": "12.0.19-alpha.1342029112",
38
+ "@applicaster/zapp-react-native-ui-components": "12.0.19-alpha.1342029112",
39
+ "@applicaster/zapp-react-native-utils": "12.0.19-alpha.1342029112",
40
40
  "atob": "^2.1.2",
41
41
  "axios": "^0.28.0",
42
42
  "btoa": "^1.2.1",