Questions tagged [subcomponent]
18 questions
6
votes
1 answer
Warning: Unknown prop on <> tag. Remove this prop from the element
I'm new to react and i was learning subclasses from one of Lynda examples. I'm creating a new subcomponent class called aptList and using this.props.eachItem.ownerName to iterate through each index from the JSON file where ownerName is a property.…
![](../../users/profiles/4272893.webp)
Aswin
- 443
- 5
- 14
5
votes
1 answer
Dagger 2 Adding a subcomponent to a parent component
Hi community I have problem with understanding dagger 2 adding subcomponent in the new way (added in dagger 2.7). See example below:
@Component(modules = {AppModule.class, MainActivityBinder.class})
@Singleton
interface AppComponent
{
…
![](../../users/profiles/2856183.webp)
Heroes84
- 844
- 1
- 8
- 17
4
votes
1 answer
Blazor InputFile reset/clear value - statehaschanged() not working
I have a component using an Blazor InputFile component as a sub-component.
When I select a file the OnChange handler is called as expected. However, if I select the same file twice the OnChange handler is not called again (which I guess is as…
![](../../users/profiles/871493.webp)
MSurrow
- 851
- 1
- 7
- 19
2
votes
2 answers
EventEmitter from Subcomponent not working
I want to have a two-way-binding from a parent-component to a sub-component. This already works well in one of my components which looks as follows (I emitted some css-classes and other not relevant parts):
parent…
![](../../users/profiles/5034008.webp)
Juliette
- 606
- 7
- 25
2
votes
0 answers
Dagger 2 - Bind into map of a dependent Component
I would like to know if or how it is possible to contribute into a map of a parent component.
This is my setup of the parent component and its graph:
@Singleton
@Component(modules = AppModule.class)
public interface AppComponent {
…
1
vote
2 answers
How to prevent unwanted object in DFM
I copied the source LabeledEdit example with a TBoundLabel in components I'm writing to attach a convenient label to. They work fine but I'm getting issues loading the .dfm form (seemingly when my component is on another such as a…
![](../../users/profiles/1179988.webp)
Mike Scott
- 147
- 2
- 8
1
vote
0 answers
Dagger2 (Android support) in single Activity pattern (Navigation)
I am recently trying to refactor my small project to use single Activity patten with Androidx Navigation, but I encounter a problem related to dependency injection, not sure my understanding of dagger2 is correct or not, assume I have 3…
![](../../users/profiles/7730573.webp)
Ivan
- 743
- 1
- 6
- 13
1
vote
0 answers
TPopupMenu as subcomponent, don't works
I'm trying to develop a component, specifically a button linked to a popup menu.
I can not understand why I do not see the PopupMenu.
Down here my code:
unit DropDownButton;
interface
uses
System.SysUtils,
System.Classes,
…
![](../../users/profiles/8677677.webp)
Lucio Rosadini
- 11
- 1
1
vote
1 answer
REACT - Composition of a component with subcomponents in TypeScript
react-bootstrap let you create a modal component with:
Modal heading
…
Text in a modal
![](../../users/profiles/1356845.webp)
Simone Conti
- 427
- 3
- 7
- 16
1
vote
1 answer
Angular Routes or Sub components
I Am creating CRUD for a Journey Entity and have created two components in Angular.
List
edit
The list gets all the journeys from a service and displays them.
The edit has a form which will add anew journey or edit a journey if it's passed a…
![](../../users/profiles/4656077.webp)
Dwayne Patel
- 305
- 2
- 11
1
vote
1 answer
Dagger 2.10 subcomponent generator - Injector validation fails
I'm trying to create an annotation processor which will process my MVP views (fragments) to auto-generated Subcomponents (similar to https://github.com/lukaspili/Auto-Dagger2, but for the new Dagger 2.10 android injectors)
So far, I've been able to…
![](../../users/profiles/2971508.webp)
doodeec
- 2,909
- 17
- 23
0
votes
1 answer
MissingBinding object in MainComponent which is provided in module in subcompnent
I use "AppComponent" which has ActivityBuilderModule and ViewModelBuilderModule and SubComponent "NetworkComponent" which has NetworkModule which provide InterfaceRequest and I inject InterfaceRequest in Repository and inject Repository in…
0
votes
0 answers
Is it possible to pass type parameter information through to a dagger subcomponent?
I'd like to be able to expose type information to a subcomponent inside a generic abstract class. We have an abstract class with a type parameter that is set in a subclass (the latter of which is bound in our graph), and try to pass this type…
![](../../users/profiles/1807720.webp)
CrystalCuckoo
- 63
- 1
- 5
0
votes
1 answer
Why is using @Module.subcomponents better than installing a subcomponent via a method on the parent component?
From the docs:
Using @Module.subcomponents is better since it allows Dagger to detect if the subcomponent is ever requested. Installing a subcomponent via a method on the parent component is an explicit request for that component, even if that…
![](../../users/profiles/2352699.webp)
Fred Porciúncula
- 7,466
- 2
- 36
- 52
0
votes
3 answers
Networkx: Plot a subgraph similar to subcomponent in igraph R
I'm trying to plot a networkx graph on Python. Instead of plotting all nodes and edges, I'd like to filter out nodes which has link to a user given node. I think this is similar to subcomponent in iGraph in R.
For example, in the below code, my…
![](../../users/profiles/9683621.webp)
Samira Kumar
- 478
- 4
- 12