@applicaster/zapp-react-native-ui-components 12.0.0-rc.73 → 12.0.0-rc.75

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.
@@ -2,6 +2,7 @@ import React, {
2
2
  createContext,
3
3
  ReactNode,
4
4
  useCallback,
5
+ useEffect,
5
6
  useMemo,
6
7
  useRef,
7
8
  } from "react";
@@ -113,6 +114,11 @@ export function ScreenContextProvider({
113
114
  return navBarState;
114
115
  }, []);
115
116
 
117
+ useEffect(() => {
118
+ // purge the getScreenNavBarState store when the pathname changes
119
+ screenNavBarStateRef.current = null;
120
+ }, [pathname]);
121
+
116
122
  const screenNavBarState = getScreenNavBarState()(
117
123
  useShallow((state) => ({
118
124
  visible: state.visible,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "12.0.0-rc.73",
3
+ "version": "12.0.0-rc.75",
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.0-rc.73",
38
- "@applicaster/zapp-react-native-bridge": "12.0.0-rc.73",
39
- "@applicaster/zapp-react-native-redux": "12.0.0-rc.73",
40
- "@applicaster/zapp-react-native-utils": "12.0.0-rc.73",
37
+ "@applicaster/applicaster-types": "12.0.0-rc.75",
38
+ "@applicaster/zapp-react-native-bridge": "12.0.0-rc.75",
39
+ "@applicaster/zapp-react-native-redux": "12.0.0-rc.75",
40
+ "@applicaster/zapp-react-native-utils": "12.0.0-rc.75",
41
41
  "promise": "^8.3.0",
42
42
  "react-router-native": "^5.1.2",
43
43
  "url": "^0.11.0",