-
Notifications
You must be signed in to change notification settings - Fork 957
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
Warning during state update. #1226
Comments
Hi, we have the same issue in our project when we set a state in a modal component. |
Same issue as well, here is a minimal reproduction that is a slight variation from the example in the docs. For visibility, the issue title should be changed to highlight that this issue is caused by the Modal component (most likely the forcedUpdate during
|
Please see #1094 (comment) |
@artyorsh I understand the workaround specified in that ticket. But that is simply a workaround due to an issue with this library performing a forceUpdate during a render function. I don't have the current capacity to fix this issue right now but looking at the code of ModalPanel, I think I understand the basic issue. Can you please keep this issue open so it can be tracked. That way either myself or another developer can come back and fix the issue. |
I am trying to build a form within a modal. I have run into this error when using, SELECT, RADIO and CHECKBOX. This issue is going to force me to move to a new screen instead of using a modal. I hope this issue gets resolved soon. |
I have same issue when use modal. |
I have same issue also. |
I have same issue also |
Any news on this bug? |
Any updates? |
@natheeshsunway I have fixed and apply patch. I will create pull request. |
Open pull request. |
Fixed within version 5.1.1 |
I've got this error:
Warning: Cannot update during an existing state transition (such as within
render). Render methods should be a pure function of props and state.
my code is:
Does anyone have an idea why is this happening?
The code above is working fine and it accomplishes what it does, which is to update value when input changes.
The error only shows up during the first render. It seems
setValue
is the culprit.Further warning:
Environment:
"@ui-kitten/components": "^5.0.0",
"@ui-kitten/eva-icons": "^5.0.0",
The text was updated successfully, but these errors were encountered: