These are chat archives for ractivejs/ractive

29th
Jun 2018
Shakeel Osmani
@shakeelosmani
Jun 29 2018 00:03
Well I tried and here is the fiddle https://jsfiddle.net/9fk06mcL/ , I ended up getting too much recursion error I guess I need to do this, any example: "you may need a lock var if computeds can update computeds to avoid inception"
Chris Reeves
@evs-chris
Jun 29 2018 00:05
basically, in each setter that can call and be called by another setter, add if (this.setting) return; this.setting = 1; ...; this.setting = 0
need one setting flag for each originating computed so it knows if it's triggering its own set
it's usually easier to track with on-change 😁
Shakeel Osmani
@shakeelosmani
Jun 29 2018 00:29
Well I could not make that to work either. https://jsfiddle.net/pqts780m/
Cerem Cem ASLAN
@ceremcem
Jun 29 2018 11:29
@evs-chris my intention was swapping column orders, like that:
Chris Reeves
@evs-chris
Jun 29 2018 23:11
yep, you could achieve that by swapping out the partial, though there's probably not a good way to give the user feedback (transition) in that case