Skip to content

Commit e0fd3ef

Browse files
committed
josh - add commment for wrapper DashboardViewportWithQuery
Signed-off-by: Jialiang Liang <[email protected]>
1 parent 8ffc464 commit e0fd3ef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/plugins/dashboard/public/application/embeddable/viewport/dashboard_viewport.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ export class DashboardViewport extends React.Component<DashboardViewportProps, S
202202
}
203203
}
204204

205+
/**
206+
* A wrapper component for DashboardViewport that integrates direct query sync functionality.
207+
* Manages the state for direct query sync (startLoading, loadStatus, pollingResult) using the useDirectQuery hook,
208+
* and provides mdsId state management for datasource synchronization.
209+
* This separation keeps DashboardViewport as a pure presentational component while handling stateful logic here.
210+
*/
205211
export const DashboardViewportWithQuery = (
206212
props: Omit<DashboardViewportProps, 'startLoading' | 'loadStatus' | 'pollingResult'>
207213
) => {

0 commit comments

Comments
 (0)