-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Passing unserializable values into action logger causes system to hang #1839
Comments
Of course, the obvious workaround is to pull out / modify the values:
|
You're more than welcome to open a PR to fix the issue |
If it were as simple as wrapping |
@billy - Could you post detailed instructions on how to replicate this issue. |
I think it has to do with how our addon channels serialize the communication so it's probably not just the addon-actions. something like this should cause it to hang when it should be dropping the object key:
related to #778 |
@dangreenisrael I have come across this issue while using
This causes the window to freeze up for around 20-30 seconds and then resumes and nothing happens |
@Billy- might be related to this? haoxins/react-flatpickr#43 |
I don't think so. As mentioned above, this issue can be worked around by using an arrow function and pulling out only the variables you want. It is only if you pass the action logger straight into the onChange that it happens - because the second parameter is unserializable |
@Billy- Could you post a new repo reproducing this problem without the use of 'react-flatpikr'? |
I don't really know the exact cause of the bug, so I'd have to put some time into actually trying to track that down. Unfortunately I don't really have the time to contribute that. Sincerest apologies! |
Fixed in |
Title pretty much says it all. Kinda related to #132, you just need to check if the object is serializable rather than only checking if it's a SyntheticEvent type
The text was updated successfully, but these errors were encountered: