Skip to content

Commit

Permalink
React: fix useMemo (DevExpress#6870)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladaskorohodova authored Dec 11, 2024
1 parent f166002 commit e9c8361
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ If you need to use objects, define them outside the component class or function
// Correct: Object wrapped in `useMemo`
function App() {
// ...
const options = React.useMemo({
const options = React.useMemo(() => ({
items: positions,
searchEnabled: true,
value: "CEO"
}, []);
value: "CEO",
}), []);

return (
<!-- ... -->
Expand Down

0 comments on commit e9c8361

Please sign in to comment.