Skip to content

Commit

Permalink
fix: unique key warning on componentized element (#1835)
Browse files Browse the repository at this point in the history
  • Loading branch information
rothsandro authored Feb 18, 2025
1 parent 330a8e7 commit f8068d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TransWithoutContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ const fixComponentProps = (component, index, translation) => {
return createElement(Fragment, null, comp);
}
// <Componentized />
return createElement(Componentized);
return createElement(Componentized, { key: componentKey });
};

const generateArrayComponents = (components, translation) =>
Expand Down

0 comments on commit f8068d3

Please # to comment.