when a record is destroyed make sure all "reactivity" is turned off during the update #195
Labels
bug
Something isn't working
ready-to-release
Internal Use Only: Has been fixed, specs passing and pushed to edge branch
Milestone
For example this spec will fail:
because
InnerComponent
accesses the child'stest_model
, which is set to nil when the child is destroyed (because we want to keep all the linkages nicely synchronized) but setting this to nil causes the component to re-rerender.Here is a patch (not fully tested)
Note that simply wrapping the
destroy_associations
method with theBase.loading
method will not work, as this will turn off notification for both sides of the relationship. I.e. the has_many side will never re-render either, which it should.The text was updated successfully, but these errors were encountered: