Skip to content

UXP Context #42

@justintaylor-dev

Description

@justintaylor-dev

From @adamplouff

export const asModal = async (commandName: string, callback: Function) => {
  return await executeAsModal(async (executionContext) => await callback(*executionContext*), { commandName });
};

Pass executionContext to the callback so the user can cancel and get progress updates

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions