-
Notifications
You must be signed in to change notification settings - Fork 18
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
Crash when using validation #29
Comments
Not only when you use validation. Wtf. |
I have also experienced this issue. :( Sadly I am not even using validation. |
Not sure if this applies to everyone, but we noticed that this bug only happens in development. It is still annoying and confusing, but at least does prevent the lib from being used successfully in production. |
It seems that this only happens with |
When using validation for a field with type
colorlist
and the validation fails there is a warning icon next to the field label in the studio. When hovering over the icon the studio crashes with the errorError: flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.
This can be recreated by creating a new studio with for instance the blog template. Then add the example field from the readme and add validation.
When creating a document the warning icon appears, when hovering over the icon the studio crashes.
I'm using the following versions:
Node and npm
The text was updated successfully, but these errors were encountered: