flipace/horizon-react

Questions about unsubscribe

Closed this issue · 0 comments

After having a look through the subscribe enhancer, I am confused about what is inside of this.subscriptions, are they subscriptions or promises? because I think 'forEach' will return a promise , when collections are subscribed in handleQuery function. So in unsubscribe function, would the dispose() be called ever?

I am quiet new to horizon, even react, I have learnt a lot from this great library and lovli.js. so please... if I made a naive silly question