Skip to content

Commit

Permalink
Merge pull request #736 from hadashiA/ku/fix-register-component-in-hi…
Browse files Browse the repository at this point in the history
…erarchy

Chage RegisterComponentInHIerarchy to .Singleton to fix multiple Injects
  • Loading branch information
hadashiA authored Dec 22, 2024
2 parents e74d882 + c299bc8 commit 9fbfce0
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 9fbfce0

Please sign in to comment.