Skip to content

Commit

Permalink
Fixed shouldComponentUpdate (closes #76).
Browse files Browse the repository at this point in the history
  • Loading branch information
macrozone authored and radekmie committed Jul 20, 2016
1 parent 27f493c commit 2bedfac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/uniforms/src/components/fields/BaseField.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ export default class BaseField extends Component {
}
}

if (nextContext.schema !== prevContext.schema) {
return true;
}

return false;
}

Expand Down

0 comments on commit 2bedfac

Please sign in to comment.