Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Meteor 3] Meteor.callAsync doesn't provide result from server #12888

@zodern

Description

@zodern

To reproduce:
In a new app from Meteor 3.0-alpha.18, add this code to both the client and server:

if (Meteor.isServer) {
  Meteor.methods({
    'server-only'() {
      return 'result'
    }
  });
} else {
  Meteor.callAsync('server-only').then(console.log);
}

Instead of logging result, it logs:

{stubValuePromise: Promise}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions