It ‘s a tasking action that hits frontend performance badly @nealzie the weweb polling action (especially when used with an API call like you are doing) will significantly slow down that page and very often even crash it if you get high enough traffic (say a couple thousand users or so using that feature with reasonable message volume).
In any case, for your use case, why are you polling for new messages? Is it perhaps something you cannot avoid? If it is avoidable, in my experience, can you look into using the realtime subscription feature (if you are using Supabase of course), use that instead of polling, so the backend pushes new messages to the frontend, and not the frontend doing the heavy work of polling for new messages. Loop actions are a performance hit.