I have an autorun that needs to be run when a collection changes but the collection is not used in the autorun, instead an external function is called.
Could you explain a bit more what you are trying to achieve ?
I don’t understand what get_collection is, and why it is called both in your autorun and refresh function. BTW, what is your refresh function for ?
It’s because fullcalendar.io provides 2 callbacks to update it’s content
get_data() : tells full calendar where to get the data
refresh() : tells full calendar to rerun get_data
Therefore my code looks like this
get_data : () {
const data = Data.find().fetch()
// give data to fullcalendar.io
}
autorun () => {
const data = Data.find()
data.forEach(v => { console.log()}) // if not present, autorun doesn't run
refresh()
}