There was an error while loading. Please reload this page.
1 parent e7b0945 commit 898a1e4Copy full SHA for 898a1e4
1 file changed
src/rce.ts
@@ -671,11 +671,11 @@ export async function RCEActionHandler(actionData: ActionData) {
671
return;
672
}
673
674
- if (action.contextSetupHook) {
+ if (action.contextSetupHooks) {
675
context.lifecycle.setupHooks = false;
676
// TODO: Add documentation for handling if a value already exists in case of async race timing and all that
677
const setupArray = [];
678
- for (const hook of action.contextSetupHook) {
+ for (const hook of action.contextSetupHooks) {
679
setupArray.push(hook(context));
680
681
Promise.allSettled(setupArray).then(() => context!.lifecycle.setupHooks = true);
0 commit comments