pull/18504/merge
Siddhant Gudwani 4 days ago committed by GitHub
commit 74128e55bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix(runes): preserve derived memoization during async batch reading (#18503)

@ -672,7 +672,7 @@ export function get(signal) {
var is_new = (derived.f & REACTION_RAN) === 0;
if (is_dirty(derived)) {
if (is_dirty(derived) && (!batch_values?.has(derived) || current_batch?.is_fork)) {
if (should_connect) {
// set the flag before `update_derived`, so that the derived
// is added as a reaction to its dependencies

Loading…
Cancel
Save