File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
packages/svelte/src/internal/client/reactivity Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ import { Batch, schedule_effect } from './batch.js';
4848import { flatten } from './async.js' ;
4949
5050/**
51- * If an effect can be created in the current context, `VALID_EFFECT_PARENT` is returned.
52- * If not, a value indicating why is returned.
51+ * If an effect can be created in the current context, `VALID_EFFECT_PARENT` is returned.
52+ * If not, a value indicating why is returned.
5353 * @returns {number }
5454 */
5555function active_root_effect ( ) {
@@ -73,15 +73,18 @@ function active_root_effect() {
7373 */
7474export function validate_effect ( rune ) {
7575 const valid_effect_parent = active_root_effect ( ) ;
76- switch ( valid_effect_parent ) {
76+ switch ( valid_effect_parent ) {
7777 case VALID_EFFECT_PARENT :
7878 return ;
7979 case EFFECT_ORPHAN :
8080 e . effect_orphan ( rune ) ;
81+ break ;
8182 case UNOWNED_DERIVED_PARENT :
8283 e . effect_in_unowned_derived ( ) ;
84+ break ;
8385 case EFFECT_TEARDOWN :
8486 e . effect_in_teardown ( rune ) ;
87+ break ;
8588 }
8689}
8790
You can’t perform that action at this time.
0 commit comments