TodoApp doesn't show changes until I switch tabs

Just completed the TodoApp up to step 6 (https://wasp-lang.dev/docs/tutorial/actions) and I've noticed that when I add new todos or mark them complete I don't see any changes until I switch Chrome tabs or windows. Refreshing the page also so the changes. Keeping the developer tools open in Chrome I don't see the new todo show up in the DOM until I switch tabs and back again either. Has anyone else seen this? Running node v20 and wasp 0.14.0. Thanks
6. Modifying Data | Wasp
In the previous section, you learned about using Queries to fetch data.
2 Replies
kapa.ai
kapa.ai3mo ago
Hi @calminferno. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. However, I can tell you that Wasp has a feature where it automatically keeps all your queries in sync with any changes made through Actions. This means that when you create a new task, the list of tasks is automatically updated to display the new task, even though you have not written any code that would do that! Wasp handles these automatic updates under the hood source (https://wasp-lang.dev/docs/tutorial/actions#invoking-the-action-on-the-client). However, there is a known issue where in development, the browser tab goes blank after file changes. This issue has been described here (https://github.com/wasp-lang/wasp/issues/84). It might be related to your problem, but I can't say for sure. I would recommend checking the Wasp Github issues (https://github.com/wasp-lang/wasp/issues) to see if anyone else has reported a similar problem. If not, you might want to open a new issue there to get help from the Wasp community. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @calminferno, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
calminferno
calminferno3mo ago
I figured out what I did wrong!
Want results from more Discord servers?
Add your server