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.

fix (#118)

Neil Kanakiab2db5c021426
diff --git a/apps/carbon/app/routes/x+/_layout.tsx b/apps/carbon/app/routes/x+/_layout.tsx
index 02589c9ef5..40aa303779 100644
--- a/apps/carbon/app/routes/x+/_layout.tsx
+++ b/apps/carbon/app/routes/x+/_layout.tsx
@@ -24,10 +24,17 @@ import { TooltipProvider } from "@carbon/react";
import type { ShouldRevalidateFunction } from "@remix-run/react";
export const shouldRevalidate: ShouldRevalidateFunction = ({
+ currentUrl,
defaultShouldRevalidate,
}) => {
- // TODO: some more sophisticated logic here
- return false;
+ if (
+ currentUrl.pathname.startsWith("/x/settings") ||
+ currentUrl.pathname.startsWith("/x/users")
+ ) {
+ return true;
+ }
+
+ return defaultShouldRevalidate;
};
export async function loader({ request }: LoaderFunctionArgs) {