Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.
This repository was archived by the owner on May 11, 2024. It is now read-only.

Collection error after Meteor.disconnect() and Meteor.reconnect() #1

@andrewforage

Description

@andrewforage

Description
pub-sub-lite throws an error (see screenshot below) when reconnecting the current user to the Meteor DDP. This logs the user out until the page is refreshed.

This issue also randomly logs user out until page refresh randomly.

Steps to reproduce

  1. In browser and logged in console, run: Meteor.disconnect()
  2. Now, run Meteor.reconnect()
  3. Assert that the error below is thrown
  4. Run Meteor.userId() and assert that a userId is returned
  5. Run Meteor.user() and assert that it is undefined and the user is classified as logged out.
  6. Refresh page and assert user is still logged in.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions