-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
refactor: add useQuery to request getUsers endpoint #3127
Conversation
… better naming consistency and clarity 🔧 (use-get-users-page.ts): update useGetUsers to accept options parameter for flexibility in mutation 🔧 (use-get-users-page.ts): refactor getUsersPage function to getUsers and update parameter name for clarity 🔧 (use-get-users-page.ts): update useGetUsers to use mutate function instead of query for mutation 🔧 (index.tsx): add useGetUsers import to AdminPage to fetch users data 🔧 (index.tsx): refactor getUsers function to use mutateGetUsers for fetching users data with options 🔧 (index.tsx): refactor handleChangePagination function to use mutateGetUsers for fetching users data with options 🔧 (index.tsx): update resetFilter function to use mutateGetUsers for fetching users data with options
This pull request is automatically being deployed by Amplify Hosting (learn more). |
Pull Request Validation ReportThis comment is automatically generated by Conventional PR Whitelist Report
Result Pull request does not satisfy any enabled whitelist criteria. Pull request will be validated. Validation Report
Result Pull request satisfies all enabled pull request rules. Last Modified at 31 Jul 24 19:50 UTC |
…ed logic as it is no longer needed with the introduction of isPending variable from useGetUsers hook. Update related logic to use isPending variable instead of loadingUsers variable.
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.
LGTM
✨ (use-get-users-page.ts): refactor useGetUserPage to useGetUsers for better naming consistency and clarity
🔧 (use-get-users-page.ts): update useGetUsers to accept options parameter for flexibility in mutation
🔧 (use-get-users-page.ts): refactor getUsersPage function to getUsers and update parameter name for clarity
🔧 (use-get-users-page.ts): update useGetUsers to use mutate function instead of query for mutation
🔧 (index.tsx): add useGetUsers import to AdminPage to fetch users data
🔧 (index.tsx): refactor getUsers function to use mutateGetUsers for fetching users data with options
🔧 (index.tsx): refactor handleChangePagination function to use mutateGetUsers for fetching users data with options
🔧 (index.tsx): update resetFilter function to use mutateGetUsers for fetching users data with options