expo-router 2.0.7 → 2.0.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-router",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "main": "src/index.tsx",
5
5
  "types": "build/index.d.ts",
6
6
  "files": [
@@ -105,12 +105,12 @@
105
105
  },
106
106
  "dependencies": {
107
107
  "@bacons/react-views": "^1.1.3",
108
- "@expo/metro-runtime": "2.2.9",
108
+ "@expo/metro-runtime": "2.2.10",
109
109
  "@radix-ui/react-slot": "1.0.1",
110
110
  "@react-navigation/bottom-tabs": "~6.5.7",
111
111
  "@react-navigation/native": "~6.1.6",
112
112
  "@react-navigation/native-stack": "~6.9.12",
113
- "expo-head": "0.0.13",
113
+ "expo-head": "0.0.14",
114
114
  "expo-splash-screen": "~0.20.2",
115
115
  "query-string": "7.1.3",
116
116
  "react-helmet-async": "^1.3.0",
@@ -121,13 +121,15 @@ function rewriteNavigationStateToParams(
121
121
  const lastRoute = state.routes.at(-1)!;
122
122
  params.screen = lastRoute.name;
123
123
  // Weirdly, this always needs to be an object. If it's undefined, it won't work.
124
- params.params = lastRoute.params ?? {};
124
+ params.params = lastRoute.params
125
+ ? JSON.parse(JSON.stringify(lastRoute.params))
126
+ : {};
125
127
 
126
128
  if (lastRoute.state) {
127
129
  rewriteNavigationStateToParams(lastRoute.state, params.params);
128
130
  }
129
131
 
130
- return params;
132
+ return JSON.parse(JSON.stringify(params));
131
133
  }
132
134
 
133
135
  function getNavigatePushAction(state: ResultState) {