Skip to main content
2 votes
3 answers
129 views

How to dynamically set an HTML header tag (h1, h2, etc.) in a Blazor component?

I want to create a reusable Blazor component that allows the user to define the HTML header tag (<h1>, <h2>, etc.) via a parameter. My goal is to render a header dynamically like this: <...
Samuel's user avatar
  • 23
0 votes
0 answers
89 views

How to Prevent Suspense Waterfall in React 18 with Dynamic, Server-Driven Components?

I’m building a React 18.3 (TypeScript) app where components are dynamically rendered based on a server-provided JSON structure. I’m using React.Suspense and React.lazy for code-splitting to load ...
Saeed Mansoori's user avatar
0 votes
1 answer
29 views

Dynamic Component Blazor Run Public Method

I have a list of references to DynamicComponents in Blazor. Each is possibly a different type. Each contains a method called "CodeGen" I am trying to call the public methods, but cannot ...
JerryLan's user avatar
1 vote
0 answers
119 views

Dash: A nonexistent object was used in an Input of a callback when dynamically loading components

I'm developing a multi-page Dash application where I dynamically switch between different views, such as a login page and a script selection page, using a placeholder div to load the content ...
Gabriel Passos's user avatar
2 votes
1 answer
232 views

How to use the AsyncPipe with ngComponentOutlet

I want to build a UI dynamically based on a JSON config. Trying to use ngComponentOutlet with the AsyncPipe so I can import(...) the components lazily. My implementation is not working (see example on ...
Brian's user avatar
  • 1,449
0 votes
1 answer
75 views

How to make a Runnable class a Spring Boot Component whose bean will be created dynamically?

I want to create a Spring Boot Component named GameSessionRunner that implements the Runnable interface. During its creation, GameSessionRunner needs an object of SudokuGame, which will be dynamically ...
Himanshu Sajwan's user avatar
2 votes
1 answer
569 views

DynamicComponent not refresshing when changing the component type

``<DynamicComponent Type="SelectedQuestionTemplate" Parameters="parameters" @ref="dynamicComponentRef"/>` Am in a situation where I need to render the component ...
VIvek's user avatar
  • 41
0 votes
1 answer
1k views

NextJS Dynamic Component not rendering out in SSR even when SSR: true

Perhaps I misunderstand how the next/dynamic components work... but when I have code like this: const RealContent = dynamic(() => import('./RealContentComponent'), { loading: () => <span>...
Chenzo's user avatar
  • 335
1 vote
1 answer
923 views

Dynamic component selection in Vue-Router

I have a base component that is extended by some other Components as follows: // UserForm <template> <div class="user-form"></div> </template> // ...
SNO's user avatar
  • 886
0 votes
1 answer
36 views

Conditional props in intreface

I have a question regarding interfaces: Basically I'm creating a dynamic component that change depending on which page it is. My interface is constructed like so: interface Props { heading: string; ...
Tihi's user avatar
  • 27
0 votes
1 answer
2k views

how to create dynamic component in react?

so i want to create a a dynamic react component that the name come from the backend like: [ { "data": { "header": "this is header one", "article&...
kxown's user avatar
  • 235
1 vote
1 answer
2k views

Laravel - How to pass array to dynamic blade component? Cannot use object of type Illuminate\View\DynamicComponent as array

I've got a dynamic component which I am trying to pass an array of data to like: <x-dynamic-component :component="$component['component']" :data="$component&...
lky's user avatar
  • 1,139
1 vote
0 answers
190 views

Blazor DynamicComponent displays the component twice when I change it's Type by using injected service

I have a single page blazor application,where I have a dynamic component tag @page "/" @if (_loadSettingCompleted) { <HeaderNavMenu SelectDialog="OnSelectDialog" ...
Кадырбек Асылбек уулу's user avatar
3 votes
1 answer
4k views

How to create dynamic components using service without ComponentFactoryResolver as it is deprecated in angular

As you may know in earlier versions of angular, dynamic components could be created with the help of ComponentFactoryResolver as export class DialogService { dialogComponentRef: ComponentRef<...
WasiF's user avatar
  • 29.2k