https://github.com/numtel/meteor-server-method-issue
https://github.com/numtel/meteor-server-method-issue
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/numtel/meteor-server-method-issue
- Owner: numtel
- Created: 2014-11-28T23:11:58.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-28T23:17:29.000Z (over 11 years ago)
- Last Synced: 2025-02-15T04:42:38.283Z (about 1 year ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This very simple package displays an inconsistency in Meteor method calls.
On the client, return values from method calls are transferred by value as they must be JSON serialized over the wire.
On the server, return values from method calls are transferred by reference. If the referenced object changes after the method is called, the result variable will also change.
Run the test to see:
```bash
$ git clone https://github.com/numtel/meteor-server-method-issue.git
$ cd meteor-server-method-issue
$ meteor test-packages ./
```