Closed leite08 closed 6 years ago
Hey @leite08 this is what I call bug report! Thank you! Working on it now...
@leite08 Fixed.
Thank you! 👍
Thanks @perak! And WOW, that's what I call quick bug fix! :) Cheers!
Tested and it worked as expected, thanks!
It included another bug, though, reported here: #19
First, thanks for making this library available!
We're using it to make a reactive join between 2 collections, similar to this:
The relationship is defined as:
Then we publish the list of documents:
From there we display the data, with the library working as expected.
Then we update the database:
The first update works as expected, with the page reactively updated without the need of refresh.
The second update generates the exception below on the server:
I've created a branch on a Meteor+React repo to reproduce the error.
Clone the branch:
git clone -b perak-joins-issue-random-not-defined git@github.com:leite08/Create-React-Meteor-App.git
Run:
meteor npm install --save react react-dom
meteor
On a Mongo shell, run:
db.companies.update({},{$set:{name:'aaa'}});
That should generate the exception above.
Curiously, the exception also happens when the
reactive
option is ommited.