From 1764fcbba20d45892a5f808179e809292b413bc0 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 7 Apr 2026 18:49:54 +0300 Subject: [PATCH] fix(script): useContext not provided in imports (closes #9152) --- apps/client/src/services/frontend_script_api_preact.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/client/src/services/frontend_script_api_preact.ts b/apps/client/src/services/frontend_script_api_preact.ts index 2829ca101e..a8c6f52a3d 100644 --- a/apps/client/src/services/frontend_script_api_preact.ts +++ b/apps/client/src/services/frontend_script_api_preact.ts @@ -1,4 +1,4 @@ -import { Fragment, h, VNode } from "preact"; +import { createContext,Fragment, h, VNode } from "preact"; import * as hooks from "preact/hooks"; import ActionButton from "../widgets/react/ActionButton"; @@ -47,6 +47,7 @@ export const preactAPI = Object.freeze({ // Core h, Fragment, + createContext, /** * Method that must be run for widget scripts that run on Preact, using JSX. The method just returns the same definition, reserved for future typechecking and perhaps validation purposes.