This serves to make the labels of a canvas structure we’re building dynamic, meaning if the label changes there in the JSON, which is dynamic, it changes the node’s label on the canvas…
When everything is initially loaded, it works perfectly:
You can see that in the dynamic JSON and in the list of IDs, the same ID appears perfectly, meaning the item was loaded dynamically there.
However, the problem comes when any UPDATE happens to that item; if I update any column in this item, for example, it disappears from the “search for” instantly:
And so my dynamic labels structure doesn’t work, because if I edit the item’s name, it disappears from the search, even though the same ID remains in the list of texts. And if I refresh the page, then it shows up again.
What happens when you render the RG? Put some text or something. Is the search result consistent?
Also, you’re using a RG as a data source to hold a Search result…from my experience, it’s better to use a plugin or setup a pipeline to store data into a state list. You seem like a capable developer from your posts, it’s really easy to build a plugin to hold a Search list.
When it’s rendered the first time, it works perfectly; the problem is when any item there is edited, then in the dynamic expression I create, that edited item simply disappears.
Inside my plugin, I have a field where I load this dynamic text/json.
What I did now is pass this dynamic text to a custom state, and it apparently worked, but I’m still not 100% happy with the result. It’s really a Bubble issue that we have to work around.
Anyway, thanks for the help; I’m glad my posts show something good about me.
It’ll bring more clarity to the issue if you can verify if the RG you are using as a data container displays the list correctly if it has to render child elements.
I had a similar setup and issue with a custom plugin. Turned out that I forgot to add a stop switch in it’s update() to not update a specific state if a specific value is false.
Also the plugin state I was using as a constraint was not the same plugin state I was debugging.