Social media style app clone for each item j post

When I add the 2nd post it messes up my view completely.

I’m wondering what blocks do I need to use and in what order should they be to make multiple posts show up.

It looks fine when I have only 1 post, but when I add the one I boxed in red it really messes up.

Let me know if you have questions on what I’m wanting to do, but basically I just want to make the 2nd post display and so on for more posts.


The first block is ok where it says “works with only one post” you just need to add a wait block the first think in the do section of the clone block.

The wait block could be for 0.0001 or just 0.

I tried putting a wait block in all the red lined locations but no cigar

1 Like

Try using a waiting variable this way:

Shortly, you tell your app to wait until clone and its command are done

1 Like

I did this demo and it works as expected.

1 Like

Here’s the project I’m working on currently, you may need to create your own FBDB to do some testing.

1 Like

This is what I get

I updated the link to be a projectPage link instead, should work now.

1 Like

Not working yet.

You can look at the example I posted and you may find where your project fails.

please let me know if this link doesn’t work, it’s a direct link to copy the project

1 Like

It is clear from the video that your issue is with design not coding.

I just added the wait block to every clone do section

See the video

See the code change (not the complete list but gives the idea)

1 Like

I just want to share this here.

Why not complete the cloning with less blocks?


This is exactly what I needed, it works now and thank you. Sorry I didn’t get to this sooner I was working on another part of the project first.

1 Like

I’m at the stage now where if a user wants to click on another user, they should just tap on the column which contains said user
I’m not sure how to identify which column they’ve tapped on though because there’s not a “When any column clicked” component.

Does anyone have a suggestion on how to identify that column which was clicked?

Or is there some way to ask “is tapped component a clone of xzy component?”

It’s strange that the when Any Component Click block doesn’t have row or column options. Only “Any Group” which would be for the drag and drop interface:

You can figure out what was clicked by finding the first occurrence of another component within the column such as an image or button. But it’s not a great workaround.

I’m also wondering perhaps there is another way to index the column of the button you tap?
You should be able to grab object properties of whatever you’re looking for based on the index at that point?

Can you use a list viewer or Data Viewer List/Grid for this instead? Then it’s a simple matter to determine which item was clicked.

It’s not hard to get the index number of the button in a screen or in a column but again, I don’t see a way to do that for a column itself. But if you knew, for example, that there were two buttons in each column and you wanted the second button in the third column, that would be #6 (because 2 * 3 = 6).

I did find that I was able to count the quantity of a certain item, to get the index properly like you are saying. Is there a way to programmatically count the quantity of buttons/labels or whatever I’m clicking that way I don’t have to hard code those quantities in there?
This would be beneficial in case I made changes to my custom data viewer.

I’m not too fond of the data view list because it doesn’t seem to mesh well when combining it with Firebase DB

Here’s a demo of what I mean:

I’m using this method, but now for some reason when I use the Realtime DB listener & the DataChanged blocks together, I’m getting tons of duplicates, I don’t want to create a remove duplicates because it’s a chat so some messages might actually be legitimate copies.

I’ve noticed if there’s any lag from my internet there will be a lot more copies, usually though there’s only 4 copies. I have a remove all block prior to all of this so it’s getting rid of the existing.

Any ideas, is this a common issue? Not sure if this should be it’s own thread also since it’s somewhat related to the clone from this original post.