Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anderslemke/ec931c11c605ad009c7d54476836e093 to your computer and use it in GitHub Desktop.
Save anderslemke/ec931c11c605ad009c7d54476836e093 to your computer and use it in GitHub Desktop.
The `shouldComponentUpdate` of the LoadSequenceController used on Zetland.
shouldComponentUpdate(nextProps, nextState) {
if(window.__server) return true;
this.decideIfWeShouldShow(nextProps, nextState);
if ( nextState.actuallyShowing ) return true;
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment