Content-Length: 317710 | pFad | http://github.com/sveltejs/svelte/pull/15469/commits/3990a6bcc8befca97942c7a96883217d2618949d

EE fix: on teardown, use the last known value for the signal before the set by trueadm · Pull Request #15469 · sveltejs/svelte · GitHub
Skip to content

fix: on teardown, use the last known value for the signal before the set #15469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Mar 11, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update packages/svelte/src/internal/client/reactivity/props.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
  • Loading branch information
trueadm and Rich-Harris authored Mar 7, 2025
commit 3990a6bcc8befca97942c7a96883217d2618949d
2 changes: 1 addition & 1 deletion packages/svelte/src/internal/client/reactivity/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
* @param {Derived} current_value
* @returns {boolean}
*/
function has_destoyed_component_ctx(current_value) {
function has_destroyed_component_ctx(current_value) {
return current_value.ctx?.d ?? false;
}

Expand Down Expand Up @@ -414,7 +414,7 @@
fallback_value = new_value;
}

if (has_destoyed_component_ctx(current_value)) {

Check failure on line 417 in packages/svelte/src/internal/client/reactivity/props.js

View workflow job for this annotation

GitHub Actions / Lint

'has_destoyed_component_ctx' is not defined
return value;
}

Expand All @@ -424,7 +424,7 @@
return value;
}

if (has_destoyed_component_ctx(current_value)) {

Check failure on line 427 in packages/svelte/src/internal/client/reactivity/props.js

View workflow job for this annotation

GitHub Actions / Lint

'has_destoyed_component_ctx' is not defined
return current_value.v;
}

Expand Down
Loading








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/sveltejs/svelte/pull/15469/commits/3990a6bcc8befca97942c7a96883217d2618949d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy