Skip to content

Commit

Permalink
fix(core): load global utils before creating platform injector in the…
Browse files Browse the repository at this point in the history
… standalone case (#52365)

This is needed so that the providers configured on platform creation are picked up by the injector profiler.

PR Close #52365
  • Loading branch information
AleksanderBodurri authored and dylhunn committed Oct 25, 2023
1 parent 957effa commit a803c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/application_ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ function createOrReusePlatformInjector(providers: StaticProvider[] = []): Inject
// is already bootstrapped and no additional actions are required.
if (_platformInjector) return _platformInjector;

publishDefaultGlobalUtils();
// Otherwise, setup a new platform injector and run platform initializers.
const injector = createPlatformInjector(providers);
_platformInjector = injector;
publishDefaultGlobalUtils();
publishSignalConfiguration();
runPlatformInitializers(injector);
return injector;
Expand Down

0 comments on commit a803c89

Please sign in to comment.