Skip to content

Commit 7c40839

Browse files
committed
fix(core): added config fix for ssr hydration error
1 parent 107fb19 commit 7c40839

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/firebaseui-core/src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function initializeUI(config: FirebaseUIConfigurationOptions, name: strin
4545

4646
// TODO: Is this right?
4747
config.translations.push(english);
48-
48+
4949
const translations = config.translations?.reduce((acc, translation) => {
5050
return {
5151
...acc,
@@ -63,7 +63,7 @@ export function initializeUI(config: FirebaseUIConfigurationOptions, name: strin
6363
const current = $config.get()[name]!;
6464
current.setKey(`locale`, locale);
6565
},
66-
state: 'loading',
66+
state: behaviors?.autoAnonymousLogin ? 'signing-in' : 'loading',
6767
setState: (state: FirebaseUIState) => {
6868
const current = $config.get()[name]!;
6969
current.setKey(`state`, state);

0 commit comments

Comments
 (0)