Join the Webstudio community

Updated last year

Inconsistent UI rendering based on collection size

At a glance

The community member has a collection bound to a variable that contains the return value from a POST resource, which is a JSON array of a random number of elements. However, the UI always shows the maximum number of cards, even though the number of entries returned from the server varies. The community members discuss possible issues, such as caching and the need to refresh the resource in the builder. Eventually, one community member realizes that the issue was with the query return value not being set correctly.

I have a collection is binded to a variable that contains the return value from a POST resource ... a json array of a random # of elements which renders a bunch of cards .. but the UI seems to always show the maximum # of cards ... I debugged the server side and the # of entries returned is varying

What is the issue here? The webstudio rendering does not seem to change based on the # of entries in the collection
O
S
8 comments
it should, please share a link
the posts section is binded to a resource ... the # of posts that are sent from the server are random from 1 to 12
Server published data
Go to the blog using n8n page
What are the steps?

I see 12 items fetched and 12 items rendered.
if my post call returns 3 items .. 12 items still are rendered .... is the data cache somewhere
dang never mind ... seems like my query return value wasnt set correctly ... sorry!!
when you are in builder, you need to refresh the resource, there is a button for this, if you want to see the latest data.
Add a reply
Sign up and join the conversation on Discord