Skip to content

Commit

Permalink
fix(router): 修复Taro.redirectTo和Taro.reLaunch方法导致多次componentDidShow的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
gxs authored and ZakaryCode committed Feb 10, 2021
1 parent 6dfb70d commit 662f447
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/taro-router/src/router/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ class Route extends Taro.Component<RouteProps, {}> {

if (isRedirect) {
this.updateComponent(nProps)
return
} else if (lastMatched === nextMatched) {
return
}
Expand Down

0 comments on commit 662f447

Please sign in to comment.