mirror of https://github.com/sveltejs/svelte
fix: ensure is_pure takes into account runes (#14333)
* fix: ensure is_pure takes into account runes * feedbackpull/14362/head
parent
741106879b
commit
747d40833b
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: ensure is_pure takes into account $effect.tracking()
|
@ -1,11 +0,0 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `
|
||||
<p>Without text expression: 7.36</p>
|
||||
<p>With text expression: 7.36</p>
|
||||
<p>With text expression and function call: 7.36</p>
|
||||
<p>With text expression and property access: 4</p>
|
||||
<h1>Hello name!</h1>
|
||||
<p>4</p>`
|
||||
});
|
@ -0,0 +1,21 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `
|
||||
<p>Without text expression: 7.36</p>
|
||||
<p>With text expression: 7.36</p>
|
||||
<p>With text expression and function call: 7.36</p>
|
||||
<p>With text expression and property access: 4</p>
|
||||
<h1>Hello name!</h1>
|
||||
<p>4</p>
|
||||
<h1>Tracking: true</h1>`,
|
||||
|
||||
ssrHtml: `
|
||||
<p>Without text expression: 7.36</p>
|
||||
<p>With text expression: 7.36</p>
|
||||
<p>With text expression and function call: 7.36</p>
|
||||
<p>With text expression and property access: 4</p>
|
||||
<h1>Hello name!</h1>
|
||||
<p>4</p>
|
||||
<h1>Tracking: false</h1>`
|
||||
});
|
Loading…
Reference in new issue