-
Notifications
You must be signed in to change notification settings - Fork 2
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: Update publishing details on flow change #3870
Conversation
|
||
const _validateAndDiffRequest = useAsync(async () => { | ||
const newChanges = await validateAndDiffFlow(flowId); | ||
setAlteredNodes( | ||
newChanges?.data.alteredNodes ? newChanges.data.alteredNodes : [], | ||
); | ||
}); | ||
}, [flowId]); |
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.
Technically this should update each time there's an operation on the current flow or any nested flow, but I think this would be calling this expensive API call a lot more than we want to.
Having it update once when navigating into a flow feels fine as a fix for now.
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.
Neat :)
Removed vultr server and associated DNS entries |
|
||
const _validateAndDiffRequest = useAsync(async () => { | ||
const newChanges = await validateAndDiffFlow(flowId); | ||
setAlteredNodes( | ||
newChanges?.data.alteredNodes ? newChanges.data.alteredNodes : [], | ||
); | ||
}); | ||
}, [flowId]); |
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.
Neat :)
Please see https://opensystemslab.slack.com/archives/C01E3AC0C03/p1730197158271359
What's the problem?
What's the solution
flowId
to the dependency arrays of the functions responsible for updating these values