Skip to content

Commit

Permalink
Chage RegisterComponentInHIerarchy to .Singleton to fix multiple Injects
Browse files Browse the repository at this point in the history
  • Loading branch information
hadashiA committed Dec 20, 2024
1 parent e74d882 commit c299bc8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ internal ComponentRegistrationBuilder(object instance)
}

internal ComponentRegistrationBuilder(in Scene scene, Type implementationType)
: base(implementationType, Lifetime.Scoped)
: base(implementationType, Lifetime.Singleton)
{
this.scene = scene;
}
Expand Down

0 comments on commit c299bc8

Please sign in to comment.