Skip to content

Commit

Permalink
Merge branch 'master' of github.com:storyofams/storyblok-toolkit into…
Browse files Browse the repository at this point in the history
… beta
  • Loading branch information
BJvdA committed May 10, 2021
2 parents e51ada7 + 7e7f6bb commit b11111a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bridge/useStory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ export const useStory = (newStory: Story) => {
context?.setStory(newStory);
}, [newStory]);

return context?.story === undefined ? newStory : context?.story;
return context?.story === undefined || newStory?.uuid !== context?.story?.uuid
? newStory
: context?.story;
};

0 comments on commit b11111a

Please sign in to comment.