@ -86,20 +86,6 @@ export function set_active_effect(effect) {
active _effect = effect ;
}
/ * *
* When sources are created within a derived , we record them so that we can safely allow
* local mutations to these sources without the side - effect error being invoked unnecessarily .
* @ type { null | Source [ ] }
* /
export let derived _sources = null ;
/ * *
* @ param { Source [ ] | null } sources
* /
export function set _derived _sources ( sources ) {
derived _sources = sources ;
}
/ * *
* The dependencies of the reaction that is currently being executed . In many cases ,
* the dependencies are unchanged between runs , and so this will be ` null ` unless
@ -393,7 +379,6 @@ export function update_reaction(reaction) {
var previous _untracked _writes = untracked _writes ;
var previous _reaction = active _reaction ;
var previous _skip _reaction = skip _reaction ;
var prev _derived _sources = derived _sources ;
var previous _component _context = component _context ;
var previous _untracking = untracking ;
var flags = reaction . f ;
@ -405,7 +390,6 @@ export function update_reaction(reaction) {
( flags & UNOWNED ) !== 0 && ( untracking || ! is _updating _effect || active _reaction === null ) ;
active _reaction = ( flags & ( BRANCH _EFFECT | ROOT _EFFECT ) ) === 0 ? reaction : null ;
derived _sources = null ;
set _component _context ( reaction . ctx ) ;
untracking = false ;
read _version ++ ;
@ -479,7 +463,6 @@ export function update_reaction(reaction) {
untracked _writes = previous _untracked _writes ;
active _reaction = previous _reaction ;
skip _reaction = previous _skip _reaction ;
derived _sources = prev _derived _sources ;
set _component _context ( previous _component _context ) ;
untracking = previous _untracking ;
}
@ -868,9 +851,6 @@ export function get(signal) {
// Register the dependency on the current reaction signal.
if ( active _reaction !== null && ! untracking ) {
if ( derived _sources !== null && derived _sources . includes ( signal ) ) {
e . state _unsafe _local _read ( ) ;
}
var deps = active _reaction . deps ;
if ( signal . rv < read _version ) {
signal . rv = read _version ;