These are chat archives for meteor-space/general

21st
Sep 2015
Dominik Guzei
@DominikGuzei
Sep 21 2015 13:39
Hey @fr0zen, sorry for the delay – haven't been on the laptop the last two das ;-)
Usually components only setup reactive dependencies to the respective stores. If you want to do something special (like a GMaps resize) when reactive data changes, you can setup a Tracker.autorun (standard Meteor API) in the onCreated hook and stop the autorun in onDestroyedagain.
Dominik Guzei
@DominikGuzei
Sep 21 2015 13:48
Could look something like this:
class MyComponent extends Space.ui.BlazeComponent

  @register 'my_component'

  Dependencies: { 
    someStore: 'SomeStore'
  }

  onCreated: ->
    super
    # Blaze Components clean this up automatically
    @autorun(@gMapResizeOnDataChange)

  gMapResizeOnDataChange: =>
    data = @someStore.get('myImportantData')
    # Do something with it!
This basically is just using the blaze-components API: https://github.com/peerlibrary/meteor-blaze-components#utilities
Timothy
@timfam
Sep 21 2015 14:26
Looking at readme.io for documentation they have free version for opensource and I have applied
Dominik Guzei
@DominikGuzei
Sep 21 2015 20:27
@timfam awesome :-)
Rhys Bartels-Waller
@rhyslbw
Sep 21 2015 23:06
nice work @timfam
Timothy
@timfam
Sep 21 2015 23:09
@rhyslbw @DominikGuzei send me your emails privately so I can add you as admin to readme.io. We have been approved as opensource
Rhys Bartels-Waller
@rhyslbw
Sep 21 2015 23:41
Ok so for the pure DDD topics we need to be drawing from both the blue and red books as well
Ah sorry I see you reference the Bible already
Timothy
@timfam
Sep 21 2015 23:46
And we have to make the docs specific to meteor and meteor-space
Rhys Bartels-Waller
@rhyslbw
Sep 21 2015 23:49
I think the FAQs for Meteor Space would be more focused stand out points relating to the libraries. Containing the DDD topics in the DDD section makes sense to me
Timothy
@timfam
Sep 21 2015 23:51
We can't overload FAQ though. I think many devs just need soft landing with example codes that we ease the transition
Rhys Bartels-Waller
@rhyslbw
Sep 21 2015 23:53
I actually mean the FAQ should be blank right now. Maybe top level headings of ‘Setup’, then ‘The Basics’, then ‘Architecture Foundations’ which DDD topics could be children of
Timothy
@timfam
Sep 21 2015 23:54
I get you. Go ahead and make edits you see fit. I'm just fiddling for now
Rhys Bartels-Waller
@rhyslbw
Sep 21 2015 23:54
Focus on the Space documentation, then flesh it out with supporting info where it is critical for the proper implementation
I have to run some errands now, but maybe we can flesh out the structure with @DominikGuzei on a gDoc at the same time for real-time collaboration initially
Just to get the foundation
Timothy
@timfam
Sep 21 2015 23:56
sure