Skip to content

Commit f9bebe2

Browse files
committed
feat: add loading parameter
1 parent d485779 commit f9bebe2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const App = ({
6969
setError,
7070
user,
7171
error,
72+
loading,
7273
}: WrappedComponentProps) => (
7374
<React.Fragment>
7475
{
@@ -82,6 +83,10 @@ const App = ({
8283
? <button onClick={signOut}>Sign out</button>
8384
: <button onClick={signInWithGoogle}>Sign in with Google</button>
8485
}
86+
87+
{
88+
loading && <h2>Loading..</h2>
89+
}
8590
</React.Fragment>
8691
);
8792

0 commit comments

Comments
 (0)