Skip to content

Conversation

@adhityamamallan
Copy link
Member

@adhityamamallan adhityamamallan commented Jul 15, 2025

Summary

Add react-query hook useDiagnoseWorkflow for fetching Workflow Diagnostics, which makes a call to the diagnoseWorkflow route handler.

Test plan

Tested in follow-up: #948


export default function useDiagnoseWorkflow(params: UseDiagnoseWorkflowParams) {
/**
* We intentionally use a regular (non-suspense) query for diagnostics because:
Copy link
Contributor

Choose a reason for hiding this comment

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

Our default now is going with (non-suspense) queries unless there is a benifit from rendering the result on the server.
The above line makes it seem the opposite.

@adhityamamallan adhityamamallan merged commit 62f307c into cadence-workflow:master Jul 17, 2025
1 check passed
@adhityamamallan adhityamamallan deleted the diagnostics-hook branch July 17, 2025 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants