Messages disappear after page refresh (but still in App Data)

Hi everyone,

I’m having trouble configuring the messages page on my platform and I could really use some help.

The page was imported from another template. I’ve successfully managed to:

  • Adapt the page to display the correct user

  • Send messages correctly

  • See the messages stored properly in App Data

However, I’m facing a major issue:
As soon as I refresh the page, or leave the page and come back, all the messages disappear from the interface.

Important detail:
The messages are still visible in the App Data, so they are being saved correctly. The issue seems to be with displaying them after reload.

For context, the page is structured into two main groups (similar to WhatsApp):

  • Left group: A repeating group (RG) showing all existing conversations of the user

  • Right group: The current conversation with the selected user

I’m attaching screenshots of:

  • The repeating group that should display the messages

  • The “Send message” workflow

If anyone has an idea of what might be causing the messages to disappear after refresh, I’d really appreciate your help.

Let me know if you need more details about my database structure, workflows, or conditions.

Thanks a lot in advance!

Seems to me you have a custom state going on that you’re not realizing is there

1 Like

hi @eryne.mn

Your messages disappear because the conversation context is not persisted after refresh. You must either pass the conversation ID in the URL or rebuild the page’s data source on load

Once the page knows which conversation to display, the messages will show correctly even after a refresh.

If you share how your page type is configured, I can give you the exact expression to use.

TLDR: is the right side type Conv_message or not?

Hi, @axerob

Yes, the right side group is of type Conv_message.

Could you explain how I should implement what you mentioned about persisting the conversation after refresh? I’m not completely sure what the best way is to pass the conversation context.

I’m attaching screenshots of:

  • my page configuration

  • the right group and its workflow(which contains the repeating group with the messages)

If you need any additional screenshots or information, just let me know.

Thanks a lot for your help!

When you click a Grand Chat group, pass the user’s slug(previously saved from the account creation workflow) into URL’s path.

Then you can use the URL path as a filter for your right group, which I assume is a repeating group that is searching for a data type(messages)