From 210cdcaa686363853388a89be16e0a6b032de839 Mon Sep 17 00:00:00 2001 From: Zeno Kapitein Date: Thu, 9 Apr 2026 09:52:05 +0200 Subject: [PATCH] Fix --- packages/embed/src/standalone/index.ts | 6 +++++- .../src/components/Embeddable/EmbeddableIframeAPI.tsx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/embed/src/standalone/index.ts b/packages/embed/src/standalone/index.ts index c960d2c59..1322def35 100644 --- a/packages/embed/src/standalone/index.ts +++ b/packages/embed/src/standalone/index.ts @@ -229,7 +229,11 @@ const GitBook = (...args: StandaloneCalls) => { } } - getIframe(); + const { frame } = getIframe(); + // Always propagate configuration updates, even when color-scheme doesn't change. + frame.configure({ + ...frameConfiguration, + }); pushColorSchemeToFrame(); break; } diff --git a/packages/gitbook/src/components/Embeddable/EmbeddableIframeAPI.tsx b/packages/gitbook/src/components/Embeddable/EmbeddableIframeAPI.tsx index 308f64c69..3f2b97821 100644 --- a/packages/gitbook/src/components/Embeddable/EmbeddableIframeAPI.tsx +++ b/packages/gitbook/src/components/Embeddable/EmbeddableIframeAPI.tsx @@ -108,7 +108,7 @@ export function EmbeddableIframeAPI(props: { /** Subscribe to embed configuration from the parent (Zustand). */ export function useEmbeddableConfiguration( - selector: (state: GitBookEmbeddableConfiguration) => T, + selector: (state: GitBookEmbeddableConfiguration) => T ): T { return useStore(embeddableConfiguration, selector); }