The problem is that the value of hasMore is always stale, and I need to work around this by wrapping the check in a setTimeout to get the correct value.
Given a community with two pages of results, the first load will return false for hasMore and if I call nextPage, the next load will return true.
Am I misunderstanding how to use the results? Or is this a bug?
Hi @rdmitrij - sorry for the delayed response, I can confirm that this is currently a limitation of the system due to internal reactivity state. For now you will need to use setTimeout to help ‘tick’ the system
Hi @SocialPlus_Support , I’m still facing the same issue – my first call to queryAllPosts returns 20 objects and a hasMore of false, even though there are more posts in the database. Is there a workaround to get an accurate value of hasMore?