We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14f50bb commit eff05a2Copy full SHA for eff05a2
firebase-vscode/src/core/user.ts
@@ -43,14 +43,20 @@ export function registerUser(
43
},
44
);
45
46
+ const getInitialData = async () => {
47
+ isLoadingUser.value = true;
48
+ currentUser.value = await checkLogin();
49
+ isLoadingUser.value = false;
50
+ };
51
+
52
+ getInitialData();
53
54
const notifyUserChangedSub = effect(() => {
55
broker.send("notifyUserChanged", { user: currentUser.value });
56
});
57
58
const getInitialDataSub = broker.on("getInitialData", async () => {
- isLoadingUser.value = true;
- currentUser.value = await checkLogin();
- isLoadingUser.value = false;
59
+ await getInitialData();
60
61
62
const isLoadingSub = effect(() => {
0 commit comments