In my application, sections is a collection associated with courses using a property called course.sectionIds . The bootstrap works fine, but I am running a non-responsive connection issue when adding a section to the admin panel.
Here's the route:
@route 'adminCourse', path: 'admin/course/:course' waitOn: -> Meteor.subscribe 'course', @params.course data: -> Course.first()
And sections are included in the course publication:
Meteor.publish 'course', ( courseId ) -> return null if not this.userId
I know about reactive associations , but I canβt use approach # 1 or # 4 (overfulfillment and joining a client), as there are permissions checks (you should only see sections of your own courses). In addition, I know when data changes, so it really shouldn't be reactive.
I just want to tell Meteor to reload the data when the user submits a form to add a new section (I'm currently working on this by doing window.location.reload() after adding the section). Is there a way to do this with Meteor?
source share