Skip to content

ctx.loading.start

Represents a loading component to provides feedback to the user that their action is currently being run.

ts
await ctx.loading.start({ label: "Loading..." })
python
# the python SDK requires you to import ctx differently for pages vs actions
from forgeapp_sdk import ctx_var, action_ctx_var

# ctx = action_ctx_var.get() for actions
ctx = ctx_var.get()

await ctx.loading.start("Loading...")

example of Forge app with ctx.loading.start component