@applicaster/quick-brick-core 12.0.0-alpha.4433422595 → 12.0.0-alpha.4757075613

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.
@@ -665,15 +665,15 @@ export function NavigationProvider({ children }: Props) {
665
665
 
666
666
  // It will only work for the regular stack and pathname, It won't work for modals
667
667
  // TODO: integrate video/hook and regular modal into stack.
668
- const getStackForPathname = (
669
- pathname: string
670
- ): NavigationScreenState | undefined => {
671
- const stack = [...state?.stack?.mainStack];
668
+ const getStackForPathname = React.useCallback((pathname: string):
669
+ | NavigationScreenState
670
+ | undefined => {
671
+ const stack = [...stateRef?.current?.stack?.mainStack];
672
672
 
673
673
  const currentStack = stack.find(({ route }) => route === pathname);
674
674
 
675
675
  return currentStack;
676
- };
676
+ }, []);
677
677
 
678
678
  const navigator: QuickBrickAppNavigator = React.useMemo(
679
679
  () => ({
@@ -717,7 +717,6 @@ export function NavigationProvider({ children }: Props) {
717
717
  replaceTop,
718
718
  getStack,
719
719
  getStackForPathname,
720
- mainStack: state.stack.mainStack,
721
720
  }),
722
721
  [rivers, plugins, JSON.stringify(state), appLaunched, startUpHooks]
723
722
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/quick-brick-core",
3
- "version": "12.0.0-alpha.4433422595",
3
+ "version": "12.0.0-alpha.4757075613",
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-alpha.4433422595",
34
- "@applicaster/quick-brick-core-plugins": "12.0.0-alpha.4433422595",
35
- "@applicaster/zapp-pipes-v2-client": "12.0.0-alpha.4433422595",
36
- "@applicaster/zapp-react-native-bridge": "12.0.0-alpha.4433422595",
37
- "@applicaster/zapp-react-native-redux": "12.0.0-alpha.4433422595",
38
- "@applicaster/zapp-react-native-ui-components": "12.0.0-alpha.4433422595",
39
- "@applicaster/zapp-react-native-utils": "12.0.0-alpha.4433422595",
33
+ "@applicaster/applicaster-types": "12.0.0-alpha.4757075613",
34
+ "@applicaster/quick-brick-core-plugins": "12.0.0-alpha.4757075613",
35
+ "@applicaster/zapp-pipes-v2-client": "12.0.0-alpha.4757075613",
36
+ "@applicaster/zapp-react-native-bridge": "12.0.0-alpha.4757075613",
37
+ "@applicaster/zapp-react-native-redux": "12.0.0-alpha.4757075613",
38
+ "@applicaster/zapp-react-native-ui-components": "12.0.0-alpha.4757075613",
39
+ "@applicaster/zapp-react-native-utils": "12.0.0-alpha.4757075613",
40
40
  "atob": "^2.1.2",
41
41
  "axios": "^0.28.0",
42
42
  "btoa": "^1.2.1",