Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

link fix

aashubbfd11d6acf2
diff --git a/packages/react/src/hooks/useMount.ts b/packages/react/src/hooks/useMount.ts
index d30b288d63..bbdd6360a9 100644
--- a/packages/react/src/hooks/useMount.ts
+++ b/packages/react/src/hooks/useMount.ts
@@ -6,7 +6,9 @@ import { useEffect } from "react";
* Any other return value (including a Promise from an `async` callback) is
* ignored, so existing void/async callers are unaffected.
*/
-export default function useMount(callback: () => void | (() => void)) {
+export default function useMount(
+ callback: () => void | (() => void) | Promise<unknown>
+) {
// biome-ignore lint/correctness/useExhaustiveDependencies: run once on mount
useEffect(() => {
const cleanup = callback();