realar-project/realar

low: replace effect method to some unsubscriber registrator

Closed this issue · 2 comments

effect(() => () => ( // Ugly (((
  this.items_destroy && this.items_destroy()
));

// Must be pretty

unsub(() => {
  this.items_destroy && this.items_destroy()
});

// ... Think about

// Or perfect one!

un(() => {
  this.items_destroy && this.items_destroy()
});

Implemented in 0.6.0