Commit 310a44f
fix(sdk): reset syncOnce dedup on uid transition to undefined
The loginWithToken wrap clears creds via Accounts._unstoreLoginToken() +
Meteor.connection.setUserId(null), which does NOT fire Accounts.onLogout.
Without resetting lastSyncedUid on the resulting uid=undefined transition,
a subsequent re-login (e.g. e2ee-passphrase-management's loginByUserState
of the same user) is deduped and runUserDataSync never runs — the page
stays wedged on PageLoading and the Login button never hides.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 841c0d2 commit 310a44f
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
61 | 71 | | |
62 | 72 | | |
63 | 73 | | |
| |||
0 commit comments