Skip to content

Commit a803c89

Browse files
AleksanderBodurridylhunn
authored andcommitted
fix(core): load global utils before creating platform injector in the standalone case (#52365)
This is needed so that the providers configured on platform creation are picked up by the injector profiler. PR Close #52365
1 parent 957effa commit a803c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/application_ref.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ function createOrReusePlatformInjector(providers: StaticProvider[] = []): Inject
190190
// is already bootstrapped and no additional actions are required.
191191
if (_platformInjector) return _platformInjector;
192192

193+
publishDefaultGlobalUtils();
193194
// Otherwise, setup a new platform injector and run platform initializers.
194195
const injector = createPlatformInjector(providers);
195196
_platformInjector = injector;
196-
publishDefaultGlobalUtils();
197197
publishSignalConfiguration();
198198
runPlatformInitializers(injector);
199199
return injector;

0 commit comments

Comments
 (0)