Skip to main content

Dynamically changing the Product ID in the components

Christian Kaunissaar avatar
Written by Christian Kaunissaar
Updated over 2 weeks ago

If you are hosting a SPA site or for any other reason want to dynamically switch models/products in in the model viewer without reloading the web page you need to recreate the component with the new product ID. Just changing the Product ID will not reload the model viewer.
โ€‹
Please read more about dynamic and static props here

Did this answer your question?