fix(runes): preserve derived memoization during async batch reading (#18503)

pull/18504/head
SiddGud 1 week ago
parent b1cadd1eae
commit ec2bbb0309

@ -669,7 +669,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