Skip to content

Commit

Permalink
More docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mofojed committed May 27, 2024
1 parent 96cdc07 commit 61dd02a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/jsapi-bootstrap/src/useWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export function useWidget<T extends dh.Widget = dh.Widget>(
}

// We should be able to load the widget. Load it asynchronously, and set the widget when it's done.
// If we get cancelled before the fetch is done, we should close the widget and its exported objects.
// If not though, the consumer of the widget is expected to take ownership and close the widget appropriately.
let isCancelled = false;
async function loadWidgetInternal() {
try {
Expand Down

0 comments on commit 61dd02a

Please sign in to comment.