Rohlik.cz productPopup, signalreceiver based on url parameter

2 years ago

mcmatak
Member | 492
+
0
-

Can you somebody help how to do

https://www.rohlik.cz/?…

it means how to set that signalreceiver is some component based on url parameter?

https://www.onlinesekac.cz/…ke-bundy/c-7?…

this is my implementation, but, bcs of google i need to get rid of the do parameter in url

and set the component productDetail as a receiver, or how it is made that the render() function is called for this component?

2 years ago

enumag
Member | 2128
+
0
-

The simplest solution I can think of is to not use a signal at all. Just render the modal component always and in its render method check if there is a product_id. If there is none, do nothing.

2 years ago

mcmatak
Member | 492
+
0
-

i see, and i did it like this, but it has several problems

my situation is harder bcs i use multiple modal dialogs, i have prepared some solution for tomorrow, i will push it to project, i can show how it should work, but the inside solution is not the best, i would appreciate somebody who have experience with this