From 057a6cd5718ed307b738c9be3aea9ae0cca1d69a Mon Sep 17 00:00:00 2001 From: Shirly Niego Date: Wed, 29 Nov 2023 16:54:26 +0200 Subject: [PATCH] Fix circular dependency log --- src/appHost.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/appHost.tsx b/src/appHost.tsx index 4201f00..b03795b 100644 --- a/src/appHost.tsx +++ b/src/appHost.tsx @@ -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`) } }