Skip to content

Commit 2ca263c

Browse files
fix: metadata-loader should use push instead of unshift
1 parent 42fea8b commit 2ca263c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugin/metadata-loader.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export class MetadataLoader {
44
private static readonly refreshHooks = new Array<() => void>();
55

66
static addRefreshHook(hook: () => void) {
7-
return MetadataLoader.refreshHooks.unshift(hook);
7+
return MetadataLoader.refreshHooks.push(hook);
88
}
99

1010
async load(metadata: Record<string, any>) {

0 commit comments

Comments
 (0)