VitalRouter
VitalRouter copied to clipboard
MapComponentInHierarchy Error
I registered in the root node LifetimeScope as follows
builder.RegisterVitalRouter(routing =>
{
routing.MapComponentInHierarchy<A>();
});
builder.RegisterComponentInHierarchy(typeof(B));
After loading the new scene,I use autoInjectGameObjects to inject in the child node LifetimeScope. MapComponentInHierarchy is not working properly. RegisterComponentInHierarchy works fine.
Hi, MapComponentInHierarchy actually calls RegisterComponentInHierarchy internally, so the behaviour does not seem to change.
Also, what does 'not working properly' mean: does it mean that it is not injected, or that routing does not work?
Please send me a reproduction project if you like. Thanks.