From 89a843fcdcbf1b8d3ac4f1de674cbf241b1eb541 Mon Sep 17 00:00:00 2001 From: Evyatar Date: Mon, 25 Sep 2023 16:48:14 -0400 Subject: [PATCH] patch(vest): Suite dump runs on available root --- packages/vest/src/suite/createSuite.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vest/src/suite/createSuite.ts b/packages/vest/src/suite/createSuite.ts index 956549f3c..b01644b86 100644 --- a/packages/vest/src/suite/createSuite.ts +++ b/packages/vest/src/suite/createSuite.ts @@ -73,7 +73,7 @@ function createSuite< VestRuntime.persist(suite), { dump: VestRuntime.persist( - () => VestRuntime.useHistoryRoot()[0] as TIsolateSuite + () => VestRuntime.useAvailableRoot() as TIsolateSuite ), get: VestRuntime.persist(useCreateSuiteResult), remove: Bus.usePrepareEmitter(Events.REMOVE_FIELD),