Disappearing Data on Frontend (Adalo)
Options
![Joseph](https://us.v-cdn.net/6037124/user_avatars/3832125.jpg)
Joseph
Member ✭
Hey all, after pulling my data from Xano to Adalo (particularly 'addon' data), the data disappears after like 1-2 seconds. Is anyone else experiencing that?
I have tried deleting the 'addon' and resetting it up. I have also tried doing my whole DB/API calling on a new Instance but still no luck.
Here's whats happening:
Any help is greatly appreciated!
I have tried deleting the 'addon' and resetting it up. I have also tried doing my whole DB/API calling on a new Instance but still no luck.
Here's whats happening:
Any help is greatly appreciated!
Comments
-
I have a couple of guesses. One is that adalo is somehow re-querying xano for this data, and either getting a null response or asking a different endpoint. You ca look in Xano at the recently run requests on a given endpoint to confirm whether or not there were extra questions asked fof the back-end
If there were not - the problem could be local! Adalo under the covers uses react native for state management, so it might not be tracking the variables properly. At a glance, it looks like the problme is two levels down, soI wonder if you can grab the data and assign that URL to another variable for adalo to "remember" directly.
I'd also check whether there are workflows that might be interfering. This is all the kind of thing where the devil might be in the details, so hoping these general ideas point you in useful directions! -
Hi Ray, thanks again for the suggestions.
I tried assigning the URLs to other variables for Adalo to "remember" but checking the variables after, Adalo still has amnesia and seems to not be capturing any data from the query (this is only happening for the 'addon' data)
*Not sure if this info helps but another addon seems to work just fine.
I also checked the call requests for my endpoint and your initial hunch might have been right - there seems to be 3 calls made upon the page load for my 'posts'. If this shouldn't be the case, are there any methods I could use to fix this?
[Untitled.jpg] -
So it looks like adalo is asking for "posts" after it goes to "posts/4". That's often referring to two endpoints - the "get me all the posts" and "get me posts 4". If they are returning different shapes - e.g. if only one uses the addon - you might get different and upsetting results. Is that something you can compare? I'd do run-and-debug tests and look at the results of each.
-
Its the other way around - it calls for "posts" 3 times on page load and then when I click onto a specific post(i.e. post 4), it calls for "posts/4".
The baffling thing is that Im using both addons within the same GET for my "posts".
1 addon for "likes" count
1 addon for "user" details
[1.JPG]
[2.JPG] -
Hi , I think this issue might be a bug. I brought this issue up on Adalo's forum as well and apparently the problem was re-created.
Essentially, if one changes/renames the field name(table reference) in the database table, then one will experience the disappearing data when querying the 'addon'. If one sticks to the name(users_id) then one will not experience the problem.
Problem re-created by Dilon Perera from Adalo:
#
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback