mirror of https://github.com/sveltejs/svelte
parent
08bc37a374
commit
21c031acdb
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: ensure internal effects for elements are sequenced correctly
|
||||
@ -0,0 +1,7 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
async test({ assert, logs }) {
|
||||
assert.deepEqual(logs, [0, 1, 2, 3, 4, 5]);
|
||||
}
|
||||
});
|
||||
@ -0,0 +1,19 @@
|
||||
<script>
|
||||
function create_action(){
|
||||
let index = 0;
|
||||
return ()=>{
|
||||
console.log(index++);
|
||||
}
|
||||
}
|
||||
|
||||
const content = create_action();
|
||||
</script>
|
||||
|
||||
<div use:content></div>
|
||||
|
||||
{#each {length: 5} as _}
|
||||
<div>
|
||||
<div use:content></div>
|
||||
</div>
|
||||
{/each}
|
||||
|
||||
Loading…
Reference in new issue