Skip to content

Commit ffb6052

Browse files
authored
fix: Ignore ownership invalid mutation warnings (#15)
1 parent c1b9c1e commit ffb6052

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/Route/Route.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
if (!path && !and && !when) {
163163
return;
164164
}
165+
// svelte-ignore ownership_invalid_mutation
165166
untrack(() => router.routes)[key] =
166167
path instanceof RegExp
167168
? { regex: path, and, when }
@@ -172,6 +173,7 @@
172173
caseSensitive
173174
};
174175
return () => {
176+
// svelte-ignore ownership_invalid_mutation
175177
delete untrack(() => router.routes)[key];
176178
};
177179
});

0 commit comments

Comments
 (0)