I want to pass a list of objects which are in the state of a component. I'm trying to pass it with a element doing something likes this:
<Link
to={{
pathname: `/contributors/${contributor.id}`,
state: {linkState: this.state.contributors}
}}
>
But console shows an error:
Uncaught DOMException: Failed to execute 'pushState' on 'History': Symbol(react.element) could not be cloned.
What does it mean and what can I do about that?