Skip to content

Commit

Permalink
Remove redundant check in getDerivedStateFromProps
Browse files Browse the repository at this point in the history
  • Loading branch information
pradeepnschrodinger committed Dec 14, 2024
1 parent 41cd350 commit 809bf4d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/FixedDataTableContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ class FixedDataTableContainer extends React.Component {
'You must set either a height or a maxHeight'
);

if (!currentState) {
return null;
}

// getDerivedStateFromProps is called for both prop and state updates.
// If props are unchanged here, then there's no need to recalculate derived state.
if (nextProps === currentState.props) {
Expand Down

0 comments on commit 809bf4d

Please sign in to comment.