-
Notifications
You must be signed in to change notification settings - Fork 16
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
Replaced use axios with use query on GeneralIntoStep container #3134
base: develop
Are you sure you want to change the base?
Replaced use axios with use query on GeneralIntoStep container #3134
Conversation
Quality Gate passedIssues Measures |
if (userResponse) { | ||
updateUserName(userResponse) | ||
} | ||
}, [userResponse]) |
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 need to discuss problems with useForm
hook on our next daily call, remind me please about it
@@ -1,8 +1,10 @@ | |||
import { AxiosResponse } from 'axios' | |||
import { URLs } from '~/constants/request' | |||
import { axiosClient } from '~/plugins/axiosClient' | |||
import { Course, CourseForm, GetCoursesParams } from '~/types' | |||
import { Course, CourseForm, GetCoursesParams, ItemsWithCount } from '~/types' |
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.
import { Course, CourseForm, GetCoursesParams, ItemsWithCount } from '~/types' | |
import type { Course, CourseForm, GetCoursesParams, ItemsWithCount } from '~/types' |
parameters: { id }, | ||
searchParameters: { | ||
role: userRole, | ||
isEdit: isEdit !== undefined ? isEdit.toString() : undefined |
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 saw the same in one of your previous PRs, did I missed something?
isEdit: isEdit !== undefined ? isEdit.toString() : undefined | |
isEdit: isEdit?.toString() ?? undefined |
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.
yes, I forgot to fix it in this PR too, but I'll first merge the previous PR and then do a rebase
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.
You need to rebase your other branch and then do rebase on this branch. Don't use merge, please
Replaced useAxios with useQuery on the GeneralIntoStep container, fixed tests and removed unnecessary isUserFetched and setIsUserFetched