Skip to content

Commit

Permalink
Revert changes from #316 for expo-router v2 implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
kmagiera committed Jun 12, 2024
1 parent 10bf08a commit fddc4a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vscode-extension/lib/expo_router_v2_plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function useRouterPluginMainHook({ onNavigationChange }) {
id: computeRouteIdentifier(pathname, params),
});
}, [pathname, params]);
console.log("Router hook v2", router.navigate);
return {
getCurrentNavigationDescriptor: () => {
const snapshot = store.routeInfoSnapshot();
Expand All @@ -34,8 +35,7 @@ function useRouterPluginMainHook({ onNavigationChange }) {
};
},
requestNavigationChange: ({ pathname, params }) => {
router.navigate(pathname);
router.setParams(params);
router.push(pathname);
},
};
}
Expand Down

0 comments on commit fddc4a1

Please sign in to comment.