-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug - DualListSelector - Updating availableOptions asynchronously raise TypeError #7538
Closed
Tracked by
#8700
Labels
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
7 tasks
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the problem
If you update
availableOptions
orchosenOptions
in an asynchronous function (useEffect
orcomponentDidMount
for example). The DualListSelector raise aTypeError: Converting circular structure to JSON
.We only have the issue when the
availableOptions
orchosenOptions
is an array of React Node.availableOptions={this.state.availableOptions.map(o=><span>{o.name}</span>)}
raise the issueavailableOptions={this.state.availableOptions.map(o=>o.name)}
don'tHow do you reproduce the problem?
https://codesandbox.io/s/vibrant-rhodes-5e5my3?file=/index.js
The text was updated successfully, but these errors were encountered: