existing projects create merchandise modules for selected specifications, sealed separately in a subcomponent. When you do the editing function, you need to pass values to the subcomponents, and you need to reflect the values you have selected. First of all, when the page is loaded, the data should be initialized, that is, the list of specifications should be queried first. However, when the reflection is done, it cannot be successful, and the print has no initialization data. That is, it involves initializing the data and reflecting the data successively. I used setTimeout in the created hook function to delay 500ms and then assign the reflected value to it. But I don"t think it"s good ~ and it"s not good to set the time to 100ms.
can I use setTimeout? what are the advantages and disadvantages?
is there a better way to implement? thank you