Skip to content

Commit

Permalink
fix: metadata-loader should use push instead of unshift
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jul 27, 2023
1 parent 42fea8b commit 2ca263c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugin/metadata-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export class MetadataLoader {
private static readonly refreshHooks = new Array<() => void>();

static addRefreshHook(hook: () => void) {
return MetadataLoader.refreshHooks.unshift(hook);
return MetadataLoader.refreshHooks.push(hook);
}

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

0 comments on commit 2ca263c

Please sign in to comment.