Skip to content

Fix unintentional re-renders

Choose a tag to compare

@xJkit xJkit released this 06 May 07:18
· 36 commits to master since this release

Thanks for the discussion from #8, I made a improvement by #9

  1. Refactor GoodBye Provider with bound object literal that avoids the new React 16.3 context caveats which may leads to unintentional re-render
  2. Rename pass function to handlePass. It allows you to do additional actions (of course, you can wrap the handleOk or handleCancel with your own higher-order function!).