title: How to compare previous context with current context in React 16.x?
body: <p>Is there a way to compare previous context value with the current context value in the consumer child component's lifecycle methods?</p>
  
  <p>If there is no way to do that, is there any other workaround or an alternate solution to this?</p>
  
  <p>FYI: I'm using react v16.8.1</p>