expo-router 2.0.2 → 2.0.4
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.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"main": "src/index.tsx",
|
|
5
5
|
"types": "build/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
},
|
|
105
105
|
"dependencies": {
|
|
106
106
|
"@bacons/react-views": "^1.1.3",
|
|
107
|
-
"@expo/metro-runtime": "2.2.
|
|
107
|
+
"@expo/metro-runtime": "2.2.6",
|
|
108
108
|
"@radix-ui/react-slot": "1.0.1",
|
|
109
109
|
"@react-navigation/bottom-tabs": "~6.5.7",
|
|
110
110
|
"@react-navigation/native": "~6.1.6",
|
|
@@ -153,7 +153,7 @@ export function getPathDataFromState<ParamList extends object>(
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
return getPathFromResolvedState(
|
|
156
|
-
state,
|
|
156
|
+
JSON.parse(JSON.stringify(state)),
|
|
157
157
|
// Create a normalized configs object which will be easier to use
|
|
158
158
|
createNormalizedConfigs(options.screens),
|
|
159
159
|
{ preserveGroups, preserveDynamicRoutes }
|
|
@@ -367,7 +367,7 @@ function getPathFromResolvedState(
|
|
|
367
367
|
while (current) {
|
|
368
368
|
path += "/";
|
|
369
369
|
|
|
370
|
-
const route = current.routes[current.index ?? 0] as CustomRoute;
|
|
370
|
+
const route = { ...(current.routes[current.index ?? 0] as CustomRoute) };
|
|
371
371
|
// NOTE(EvanBacon): Fill in current route using state that was passed as params.
|
|
372
372
|
// if (isInvalidParams(route.params)) {
|
|
373
373
|
if (!route.state && isInvalidParams(route.params)) {
|