-
Notifications
You must be signed in to change notification settings - Fork 516
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
Multiple Same API Calls are been called in linked skills section #6652
Comments
khavinshankar
pushed a commit
that referenced
this issue
Dec 6, 2023
…/**) [5 out of 5 components] (#6596) * replaced getUserDetails and getUserListSkills actions with useQuery * replaced partialUpdateUser action with request * replaced updatePassword action with request * replaced dispatch with useQuery in UserFilter.tsx * Bug Fix: UserFilter tried fetching district when district_id was not available * addUser and checkUsername action replaced with request * replaced useDispatch with request in UserAdd component * replaced useDispatch with useQuery and request in SkillsSlideOver * replaced useDispatch with useQuery and request in ManageUsers * solved issue #6652 | passed user skills as props to SkillSelect * removed unnecessary console logs * re-added showAll as dependency to skillSearch * removed unnecessary console logs * replaced fetchDistrict request with useQuery and removed isLoading * fixed error notification in ManageUsers * removed unnecessary useState from ManageUsers * code fixes in SkillsSlideOver * code fixes in UserAdd * code fix in UserFilter * code fix in UserProfile * removed redundant code * added proper types and fixed redundant code * removed redundant fireRequest actions * fix http 301 redirect due to missing trailing slash * Update TRes of userListFacility in src/Redux/api.tsx Co-authored-by: Rithvik Nishad <[email protected]> * resolved imports --------- Co-authored-by: Rithvik Nishad <[email protected]> Co-authored-by: Rithvik Nishad <[email protected]> Co-authored-by: Mohammed Nihal <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When we click the linked skill button on a user card which already have a skill, inside the network tab, we can see same API is called multiple times
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Same API for same result shouldn't be called twice in linked skill
Screenshots
The text was updated successfully, but these errors were encountered: