We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97a2530 commit eb4a2e4Copy full SHA for eb4a2e4
src/system.ts
@@ -276,17 +276,10 @@ export function createReactiveSystem({
276
}
277
278
function isValidLink(checkLink: Link, sub: ReactiveNode): boolean {
279
- const depsTail = sub.depsTail;
280
- if (depsTail !== undefined) {
281
- let link = sub.deps!;
282
- do {
283
- if (link === checkLink) {
284
- return true;
285
- }
286
- if (link === depsTail) {
287
- break;
288
289
- } while ((link = link.nextDep!) !== undefined);
+ for (let link = sub.depsTail; link !== undefined; link = link.prevDep) {
+ if (link === checkLink) {
+ return true;
+ }
290
291
return false;
292
0 commit comments