type EffectScope,
type ShallowRef,
effectScope,
- isReactive,
shallowRef,
} from '@vue/reactivity'
import { isArray, isObject, isString } from '@vue/shared'
) {
const [item, key, index] = block.state
let needsUpdate =
- newItem !== item.value ||
- newKey !== key.value ||
- newIndex !== index.value ||
- // shallowRef list
- (isObject(newItem) && !isReactive(newItem))
+ newItem !== item.value || newKey !== key.value || newIndex !== index.value
if (needsUpdate) updateState(block, newItem, newKey, newIndex)
}