Fix object leak to the dom element (#3673)

This commit is contained in:
Patryk Andrzejewski 2023-05-23 11:08:11 +02:00 committed by GitHub
parent 78077f8220
commit ed8b75a9b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}