Skip to content

remove this override together with the Meteor webapp/DDP/Accounts layer — #40347

@github-actions

Description

@github-actions

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions