Skip to content

Instantly share code, notes, and snippets.

@adamkleingit
Last active July 9, 2019 10:27
Show Gist options
  • Save adamkleingit/2bfe85a57ee56a0dafda0abbffe3e43d to your computer and use it in GitHub Desktop.
Save adamkleingit/2bfe85a57ee56a0dafda0abbffe3e43d to your computer and use it in GitHub Desktop.
import {useCurrentUser} from '../stores/currentUser.store';
const Comp1 = () => {
const { user } = useCurrentUser();
...
}
const Comp2 = () => {
const { user } = useCurrentUser(); // Same user
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment