Fix object leak to the dom element (#3673)
This commit is contained in:
parent
78077f8220
commit
ed8b75a9b3
1 changed files with 2 additions and 1 deletions
|
@ -59,6 +59,7 @@ const Link: React.FC<LinkProps> = props => {
|
|||
href,
|
||||
target,
|
||||
rel,
|
||||
state,
|
||||
...linkProps
|
||||
} = props;
|
||||
|
||||
|
@ -104,7 +105,7 @@ const Link: React.FC<LinkProps> = props => {
|
|||
pathname: urlObject.pathname,
|
||||
search: urlObject.search,
|
||||
hash: urlObject.hash,
|
||||
state: props.state,
|
||||
state,
|
||||
}
|
||||
}
|
||||
{...commonLinkProps}
|
||||
|
|
Loading…
Reference in a new issue