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

fix(console): mutate after connector delete #1475

Merged
merged 1 commit into from
Jul 8, 2022

Conversation

wangsijie
Copy link
Contributor

Summary

Call mutate immediatly after delete a connector.

Testing

Local tested, @xiaoyijun would you mind help confirming it?

@github-actions github-actions bot added the bugfix label Jul 8, 2022
@github-actions
Copy link

github-actions bot commented Jul 8, 2022

COMPARE TO master

Total Size Diff 📈 +151 Bytes

Diff by File
Name Diff
packages/console/src/pages/ConnectorDetails/index.tsx 📈 +151 Bytes

gao-sun
gao-sun approved these changes Jul 8, 2022
@@ -58,10 +59,12 @@ const ConnectorDetails = () => {
.json<ConnectorDTO>();
toast.success(t('connector_details.connector_deleted'));

await mutateGlobal('/api/connectors');
Copy link
Member

Choose a reason for hiding this comment

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

is there a better way like auto mutate after/with api request? is too easy to forget to call this function

Copy link
Member

Choose a reason for hiding this comment

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

it'll be great if we can use only one mutate (i know they are different data source now. can try to refactor later)

Copy link
Member

Choose a reason for hiding this comment

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

discussed offline, solve later

@gao-sun gao-sun merged commit da882ce into master Jul 8, 2022
@gao-sun gao-sun deleted the sijie-log-3482-delete-connector-mutate branch July 8, 2022 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants