Skip to content

Commit

Permalink
Fix circular dependency log
Browse files Browse the repository at this point in the history
  • Loading branch information
shirlynwix committed Nov 29, 2023
1 parent 06393b3 commit 057a6cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/appHost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,8 @@ miss: ${memoizedWithMissHit.miss}

const circle = getCycle(dependentGraph)
if (circle) {
host.log.log('error', `Circular API dependency found: ${circle.join(' -> ')}`)
const reversedCircle = circle.reverse()
host.log.log('error', `Circular API dependency found: ${reversedCircle.join(' -> ')}`)
throw new Error(`Circular API dependency found`)
}
}
Expand Down

0 comments on commit 057a6cd

Please sign in to comment.