File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
packages/svelte/src/internal/client Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -434,6 +434,9 @@ export class Fork {
434434 return ;
435435 }
436436
437+ this . #boundary. commit_fork ( this ) ;
438+ active_fork = null ;
439+
437440 for ( const e of this . #render_effects) {
438441 try {
439442 set_signal_status (
@@ -470,8 +473,6 @@ export class Fork {
470473 handle_error ( error , e , null , e . ctx ) ;
471474 }
472475 }
473-
474- this . #boundary. commit_fork ( this ) ;
475476 }
476477
477478 increment ( ) {
Original file line number Diff line number Diff line change @@ -1059,13 +1059,13 @@ export function get(signal) {
10591059 recent_async_deriveds . delete ( signal ) ;
10601060 }
10611061
1062- if ( ( signal . f & DERIVED ) === 0 ) {
1062+ if ( active_effect !== null && ( signal . f & DERIVED ) === 0 ) {
10631063 if ( active_fork ) {
10641064 // console.log('get from fork', (signal.f & DERIVED) !== 0 ? 'derived' : 'source', signal.v);
10651065 return active_fork . get ( signal ) ;
10661066 }
10671067
1068- var boundary = active_effect ? .b ;
1068+ var boundary = ( active_effect . f & EFFECT ) === 0 && active_effect . b ;
10691069 if ( boundary ) {
10701070 // console.log('get from boundary', (signal.f & DERIVED) !== 0 ? 'derived' : 'source', signal.v);
10711071 return boundary . get ( signal ) ;
You can’t perform that action at this time.
0 commit comments