I have just updated to Wappler 6.5.0. I have noticed an issue after this update as follows:
I have a long form with about 20 questions (inputs).
When someone fills out the form it automatically saves to the database (i.e. calls a server action which updates the table).
The user can come back anytime and can continue where they left off as the inputs value is dynamically bound to the database fields.
There are also automatic calculations which occur on this page and so I have added the “Live refresh witrh Sockets” attribute to my “getthedeal” server action.
When I load the page and throughout using the page the idea is that there is constant ocmmunication and updates from the getthedeal server action. I have achieved this by adding “refresh Server Action” in the updatedeal server action. So when there are constant updaes on the page the server action is refreshed to pull in the updated data.
Now everything was working great until I updated to this new version. Now look at the recorded video below. It wont stop loading its like an infinite loop. This does not happen on my live website with the older version of Wappler.
Any idea what is going on? Again, I have changed absolutely nothing. This is complete due to the update.
Hi George I think those errors are due to empty values being sent to the update server action. Either way i am only experiencing this now after the update.
and the issue does not exist and no errors show up in console. It works normally. There is definitely an issue after apply update. Dont think the new errors are the issue in any case… it seems to be a websocket issue. The parser error you see does no show up on the older version only the new one. The parser error relates to this:
304 Not modified is not an error, it means that the content was not modified and a cached version should be used. What is the backend that you use (node, php)?
Thank you! Ok I finally fixed this issue. I set Data Caching for my state manager as below and the sockets issue has been resolved! You were right before.
I am actually still having issues with this. The caching is messing up my inputs as it wont let me change and update the values - it keeps refreshing with older cached values. I have tried putting in debounce but still no luck. Very frustrating. I need to disable caching on the server connect but then the socket issue is back where it keeps loading. Again this did not happen on previous version.
OK so after changing all my inputs from :updated to :changed that seems to have solved the issue. Strange that it only became an issue on this latest update, but all is good.
So it seems not an issue with the websockets. The updated event should only trigger when a value was updated and was different than the previous value. The changed event only triggers after a user changed the value and should not trigger on changes from code.