-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure is_pure takes into account runes (#14333)
* fix: ensure is_pure takes into account runes * feedback
- Loading branch information
Showing
5 changed files
with
36 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'svelte': patch | ||
--- | ||
|
||
fix: ensure is_pure takes into account $effect.tracking() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
packages/svelte/tests/runtime-legacy/samples/inline-expressions-2/_config.js
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
packages/svelte/tests/runtime-runes/samples/inline-expressions/_config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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>` | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters