mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-02 14:26:28 +02:00
perf(frontend): avoid needless AsyncComponentWrapper
This commit is contained in:
@@ -29,7 +29,7 @@ import { fetchCustomEmojis } from '@/custom-emojis.js';
|
||||
import { prefer } from '@/preferences.js';
|
||||
import { $i } from '@/i.js';
|
||||
|
||||
export async function common(createVue: () => App<Element>) {
|
||||
export async function common(createVue: () => Promise<App<Element>>) {
|
||||
console.info(`Misskey v${version}`);
|
||||
|
||||
if (_DEV_) {
|
||||
@@ -263,7 +263,7 @@ export async function common(createVue: () => App<Element>) {
|
||||
});
|
||||
});
|
||||
|
||||
const app = createVue();
|
||||
const app = await createVue();
|
||||
|
||||
if (_DEV_) {
|
||||
app.config.performance = true;
|
||||
|
||||
Reference in New Issue
Block a user