It “works”. But as the materialsProductItem is not a state but a iteration key, builder has some trouble prerendering the state server side.
So I get an hydration error.
How can I work around the hydration error? Is there some conditional rendering I can put in like isBrowser && filter… or ssr:false?
I alredy tried working direclty in the JSX API Editor. But as it is experimental it crashed the whole page. I also tried to work with checks like:
Hey @AndreasB , I couldn’t see any data connected on your page where you are applying this repeat. Are you handling this in your integration? If so, please share your integration code with me so that I can investigate this further.
For filtering values, I recommend using the Edit Content JS + CSS section under the Data tab rather than the repeat for each binding. Here’s an example:
I’m not entirely sure about the specific use case for filtering items using repeat-for-each, but if the above solution doesn’t meet your needs, please feel free to provide more details. We’d be happy to explore alternative options and assist further.