I have a symbol where I fetch some data depending on the user input and then set it on the state. I then use the state to populate some text fields. However, sometimes the text fields aren’t getting populated for some reason even though I can see that the data exists on state.
I’m not sure if this could have something to do with the page, because it works sometimes, and sometimes not which is unfortunate.
After investigating, it appears that for products that have no sku, those products aren’t passing the condition state.product.sku and that’s why you’re seeing undefined.
@kara, but even for those with an SKU, the state isn’t set. If I log when I fetch the data inside the symbol, I can see it being fetched. However, maybe it’s because some of them are nested or something? I.e there’s a product price symbol inside another product price symbol.
Also, when I look at a page in Builder, some of the data is fetched (on the client though), but since we’re using AMP we need it to be fetched on the server which I think the custom JS should do, right?
@kara the changes we did was to run the functions again manually. Seems like custom functions are not running in SSR as Kevin pointed out in his previous comment.