Skip to content

Commit 32a2bab

Browse files
committed
todo
1 parent 2ca4e0e commit 32a2bab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Umbraco.Web.UI.Client/src/packages/core/resources/resource.controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export class UmbResourceController extends UmbControllerBase {
3232
* @param promise
3333
*/
3434
static async tryExecute<T>(promise: Promise<T>): Promise<UmbDataSourceResponse<T>> {
35+
// TODO: tryExecute should not take a promise as argument, but should utilize the class property `#promise` instead. (In this way the promise can be cancelled when disconnected)
3536
try {
3637
return { data: await promise };
3738
} catch (error) {

0 commit comments

Comments
 (0)