Skip to content

Commit

Permalink
fix: rerender rich text when active locales change
Browse files Browse the repository at this point in the history
  • Loading branch information
YvesRijckaert committed Dec 4, 2024
1 parent aada768 commit 927aa18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rich-text/src/SdkProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface SdkProviderProps {
}

function useSdk({ sdk }: SdkProviderProps) {
const sdkMemo = React.useMemo<FieldAppSDK>(() => sdk, []); // eslint-disable-line -- TODO: explain this disable
const sdkMemo = React.useMemo<FieldAppSDK>(() => sdk, [sdk.parameters.instance.activeLocales]); // eslint-disable-line -- TODO: explain this disable

return sdkMemo;
}
Expand Down

0 comments on commit 927aa18

Please sign in to comment.