Skip to content

Instantly share code, notes, and snippets.

@lukebrandonfarrell
Created October 26, 2019 11:03
Show Gist options
  • Save lukebrandonfarrell/df152b1e8416a02cd976f3bd1240ab9a to your computer and use it in GitHub Desktop.
Save lukebrandonfarrell/df152b1e8416a02cd976f3bd1240ab9a to your computer and use it in GitHub Desktop.
useEffect(() => {
if((isReferralsError && !isReferralsEmpty) || (isUserError && !isUserEmpty)){
actionTipRef.current.show("Unable to load latest results")
}
}, [isReferralsError, isUserError, isReferralsEmpty, isUserEmpty])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment