English
detail.render.after
About 186 wordsLess than 1 minute
2025-12-16
This hook is called after the detail page is rendered and performs additional business actions after object detail rendering.
Parameters
functional registers the hook callback. The host passes the following parameters:
| Parameter | Description | Type | Allowed Values | Default |
|---|---|---|---|---|
| context | Event context containing common parameters | Object | -- | -- |
| plugin | Current plugin runtime information; business logic normally does not need it | Object | -- | -- |
Return Value
The detail page caller does not consume a business return value from this hook. Return Promise.resolve() after completing side effects.
A direct throw from a synchronous callback is caught and logged by the PWC adapter and does not produce an unhandled Promise rejection. The current Detail wrapper does not handle a rejected Promise, including an exception thrown by an async callback, and may produce an unhandled rejection. Catch and report failures inside asynchronous side effects, then resolve.
Basic Examples
Basic Usage
export default class Plugin {
apply() {
return [{
event: 'detail.render.after',
functional: this.renderAfter.bind(this)
}];
}
renderAfter(context, plugin) {
console.log(context.objectApiName);
return Promise.resolve();
}
}Notes
1. Refreshing the detail page also triggers this hook. Side effects must be idempotent.
