peerlibrary / meteor-blaze-components

Reusable components for Blaze
http://components.meteorapp.com/
BSD 3-Clause "New" or "Revised" License
354 stars 26 forks source link

@data() is not reactive in constructor #62

Closed MatejJan closed 9 years ago

MatejJan commented 9 years ago

if you create an autorun in the constructor of a blaze component, when @data() is called inside autorun, it will return undefined on the first pass, but the autorun will not be re-run when data has an actual value (it is not a reactive call, I'm guessing until just before onCreated).