Infinite loop if updateCurrentUser returns void
Hi,
I'm using opensaas with wasp v0.14.0.
I tried to update the updateCurrentUser function from actions.ts to return "void" as the result is not being used in App.tsx. I also added some logs as you can see in the screenshot.
My surprise was that when I changed it to return a void and no result, it created an infinite loop which slowed down the website performance. When I go back to the current version on wasp (which returns the User entity) the infinite loop stops.
Could you please confirm if this is a bug in wasp? Thanks!
I'm using opensaas with wasp v0.14.0.
I tried to update the updateCurrentUser function from actions.ts to return "void" as the result is not being used in App.tsx. I also added some logs as you can see in the screenshot.
My surprise was that when I changed it to return a void and no result, it created an infinite loop which slowed down the website performance. When I go back to the current version on wasp (which returns the User entity) the infinite loop stops.
Could you please confirm if this is a bug in wasp? Thanks!



