Building Single-page Web Apps with Meteor by Vogelsteller Fabian

Building Single-page Web Apps with Meteor by Vogelsteller Fabian

Author:Vogelsteller, Fabian [Vogelsteller, Fabian]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2015-01-26T16:00:00+00:00


Note

If we make a code change and a hot code reload happens, the reactive function will become reactive again, as the code was executed again.

The preceding example also uses a function called Session.equals(). This function can compare two scalar values while preventing unnecessary recomputations, compared to using Session.get('mySessionExample) === 'stop'. Using Session.equals() would only rerun this function when the session variable changes to or from that value.

Note

In our example, however, this function doesn't make a difference, as we called Session.get() before as well.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.