useMaybeDoormanUser
This hook lets you access the current user (and signOut function) on screens where the user may or may not be signed in.
If you want to access the user on a screen where a user may or may not be signed in, then use useMaybeDoormanUser
instead:
You'll notice that you do [user, signOut]
using an array instead of squiggly braces. This is done on purpose to make sure this hook is not confused with useDoormanUser
.
Last updated