Skip to content
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

ui/urql: update admin queries and mutations #3431

Merged
merged 3 commits into from
Nov 8, 2023
Merged

ui/urql: update admin queries and mutations #3431

merged 3 commits into from
Nov 8, 2023

Conversation

Forfold
Copy link
Contributor

@Forfold Forfold commented Nov 7, 2023

Description:
Updates AdminConfig, AdminLimits, AdminNumberLookup, AdminSMSSend, and SlackActions to use urql instead of @apollo/client for their queries and mutations

Which issue(s) this PR fixes:
Part of #3240

@github-actions github-actions bot added the size/s label Nov 7, 2023

const { data: numData } = useQuery(numInfoQuery, {
const [{ data: numData, error: queryError }] = useQuery({
query: numInfoQuery,
Copy link
Contributor Author

@Forfold Forfold Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that pollInterval: 0, has been removed. I did not see an equivalent for urql, though this may be fine to leave as is.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC, it was there because, initially, carrier info was part of the query (and we'd get charged for each request). But I don't think it's necessary anymore since we broke that out into a mutation in the end.

@Forfold Forfold mentioned this pull request Nov 7, 2023
76 tasks
Copy link
Collaborator

@tony-tvu tony-tvu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Forfold Forfold merged commit 8a1eeba into master Nov 8, 2023
@Forfold Forfold deleted the urql branch November 8, 2023 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants