mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-29 12:55:21 +08:00
fix: merge initial params on replace
fixes 6792
This commit is contained in:
@@ -203,7 +203,13 @@ export default function StackRouter(options: StackRouterOptions) {
|
||||
? {
|
||||
key: key !== undefined ? key : `${name}-${shortid()}`,
|
||||
name,
|
||||
params,
|
||||
params:
|
||||
routeParamList[name] !== undefined
|
||||
? {
|
||||
...routeParamList[name],
|
||||
...params,
|
||||
}
|
||||
: params,
|
||||
}
|
||||
: route
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user