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,
|
href,
|
||||||
target,
|
target,
|
||||||
rel,
|
rel,
|
||||||
|
state,
|
||||||
...linkProps
|
...linkProps
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
|
@ -104,7 +105,7 @@ const Link: React.FC<LinkProps> = props => {
|
||||||
pathname: urlObject.pathname,
|
pathname: urlObject.pathname,
|
||||||
search: urlObject.search,
|
search: urlObject.search,
|
||||||
hash: urlObject.hash,
|
hash: urlObject.hash,
|
||||||
state: props.state,
|
state,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{...commonLinkProps}
|
{...commonLinkProps}
|
||||||
|
|
Loading…
Reference in a new issue