Co-authored-by: Rizumu Ayaka <rizumu@ayaka.moe>
expect(host.innerHTML).toBe('<!--for-->')
})
- test('shallowRef source', async () => {
+ test.fails('shallowRef source', async () => {
const list = shallowRef([{ name: '1' }, { name: '2' }, { name: '3' }])
const setList = (update = list.value.slice()) => (list.value = update)
function reverse() {
newIndex: number | undefined,
) {
const [item, key, index] = block.state
- const oldItem = item.value
item.value = newItem
key.value = newKey
index.value = newIndex
-
- if (oldItem === newItem && !isReactive(oldItem)) {
- triggerRef(item)
- }
}
export function createForSlots(