File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/devtools/src/app/components/flowmap Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
2
import type { ModuleInfo , RolldownModuleTransformInfo , SessionContext } from ' ~~/shared/types'
3
3
import { computedAsync } from ' @vueuse/core'
4
- import { ref , watchEffect } from ' vue'
4
+ import { nextTick , ref , watchEffect } from ' vue'
5
5
import { backend } from ' ~/state/backend'
6
6
7
7
const props = defineProps <{
@@ -15,7 +15,10 @@ watchEffect(async () => {
15
15
session: props .session .id ,
16
16
module: props .module ,
17
17
}
18
- transforms .value = await backend .value ! .functions [' vite:rolldown:get-module-transforms' ]?.(arg )
18
+ // fetch transforms in the next tick to avoid race conditions with module info
19
+ nextTick (async () => {
20
+ transforms .value = await backend .value ! .functions [' vite:rolldown:get-module-transforms' ]?.(arg )
21
+ })
19
22
})
20
23
21
24
const info = computedAsync (async () => {
You can’t perform that action at this time.
0 commit comments