Skip to content

Commit

Permalink
Wait until the config is non-null in ProvideConfig.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Aug 7, 2024
1 parent dc5090a commit 652e104
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/config/ProvideConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
/**
* Load config asynchronously and provide it to the child components.
*/
import { until } from "@vueuse/core";
import { useLoadConfig } from "@/utils/config";
import { useProvideConfig } from "@/utils/config";
const { error, config } = await useLoadConfig();
await until(config).not.toBeNull();
useProvideConfig(config);
</script>

0 comments on commit 652e104

Please sign in to comment.