-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
solved issue with loader #575
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that resetUploadedState
dispatches createTopicAction.failure
. Can we create separate action to reset state instead of using failure?
Yeah that's why I didn't think it was a good idea to do it like this. We can create one more called createTopicAction.cancel and make it responsible for resetting the state. |
@dwikov I think we can clear state right here, without adding new actions kafka-ui/kafka-ui-react-app/src/redux/actions/thunks/topics.ts Lines 249 to 258 in b60ff8a
|
We can clear the state of topics here, the issue is with the loader state. As far as I understand, the reducer of the loader changes the state of the loader according to the action called, success fail or fetching. |
SonarCloud Quality Gate failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're on the wrong track. Loader reducer used only for async actions
What changes did you make? (Give an overview)
Removed checking for isSubmitting and add reset for isTopicCreated.
Is there anything you'd like reviewers to focus on?
How Has This Been Tested? (put an "X" next to an item)
Checklist (put an "X" next to an item, otherwise PR will fail)
Check out Contributing and Code of Conduct