it bridges Meteor's Accounts.connection userId reactive source to the Zustand
userIdStore and keeps Meteor.userId / Meteor.user / Meteor.users pointing at
the local Zustand collection. Naively replacing Tracker.autorun with
Accounts.onLogin/onLogout breaks callers (e.g. UserProvider's logoutCleanUp)
that read userIdStore from within other onLogout callbacks and depend on the
async Tracker.flush ordering to still see a truthy uid.
📝 Found in apps/meteor/client/meteor/overrides/userAndUsers.ts#L1
Commit: 981af32
it bridges Meteor's Accounts.connection userId reactive source to the Zustand
userIdStore and keeps Meteor.userId / Meteor.user / Meteor.users pointing at
the local Zustand collection. Naively replacing Tracker.autorun with
Accounts.onLogin/onLogout breaks callers (e.g. UserProvider's logoutCleanUp)
that read userIdStore from within other onLogout callbacks and depend on the
async Tracker.flush ordering to still see a truthy uid.
📝 Found in
apps/meteor/client/meteor/overrides/userAndUsers.ts#L1Commit: 981af32