I am wondering which solution is better. I have url like : http://localhost:3000/product/3. I have two options to pass Product model to component:
It is very depend on which data you are trying to pull from server. Let's talk about two cases:
onInitrequest will be more reasonable.
In production reality case #1 is more common, because you never know how many products will be pushed by content managers. But take decision according to your business rules.