Fix stack overflow when calling splice in didUpdate()