-
Notifications
You must be signed in to change notification settings - Fork 253
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
Conversation
|
||
const { data: numData } = useQuery(numInfoQuery, { | ||
const [{ data: numData, error: queryError }] = useQuery({ | ||
query: numInfoQuery, |
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.
Note that pollInterval: 0,
has been removed. I did not see an equivalent for urql
, though this may be fine to leave as is.
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.
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.
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
Description:
Updates
AdminConfig
,AdminLimits
,AdminNumberLookup
,AdminSMSSend
, andSlackActions
to useurql
instead of@apollo/client
for their queries and mutationsWhich issue(s) this PR fixes:
Part of #3240