Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit 63bb2b9

Browse files
authored
Merge pull request #885 from serGlazkov/main
fix: useStoryblokState fix case if initialStory changes
2 parents 79f83c6 + 1efda03 commit 63bb2b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/common/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export const useStoryblokState: TUseStoryblokState = (
1313
typeof window.storyblokRegisterEvent !== "undefined";
1414

1515
useEffect(() => {
16+
setStory(initialStory);
17+
1618
if (!isBridgeEnabled || !initialStory) return;
1719

1820
registerStoryblokBridge(

0 commit comments

Comments
 (0)