donejs / donejs/bitballs

Promises are different in the client and the server

Open
#245 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12
Forks
18
PR merge metrics
No merged PRs in 30d

Description

If you change `tournamentPromise` of `components/tournament/details/details.js` to:

``` js
tournamentPromise: {
get: function(){
var p = Tournament.get({id: this.attr("tournamentId")});
console.log("state",typeof p.state);
return p;
}
},
```

You'll see that on the server, `state function`, on the client `state undefined`.

There's different promise implementations being used and could be a source of bugs / confusion. Something to look into.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.