I have a collection that is populated with URLs from an external API. Every time a new item is added, I would like to notify the frontend and use the newly inserted URL to redirect the user with wixLocation.to() (as I cannot use this function from backend). Is there any way to notify the frontend that a new item has been added to the collection?
Hello. You should be able to accomplish this with a combination of an insert data hook and using the Realtime API
Here is an example another user created using the realtime API. It is not the same as your use case exactly, but should help to illustrate how it works
Thank you Amanda, that sounds interesting. I will give that a try!