React-toastify display toast from Next.js api route
Hey guys,
I currently has a system flow that works as follows using t3 stack:
1. User submits form on frontend
2. Some processing is offloaded to AWS Lambda by trpc procedure and procedure quits
3. Once Lambda is finished, it calls a next.js backend api route
I'd like to display some feedback to the user once the next.js api route is called by Lambda, preferrably in the form of a react-toastify toast. Is it possible to invoke a frontend toast from the backend? If not, how would I go about doing something similar?
I currently has a system flow that works as follows using t3 stack:
1. User submits form on frontend
2. Some processing is offloaded to AWS Lambda by trpc procedure and procedure quits
3. Once Lambda is finished, it calls a next.js backend api route
I'd like to display some feedback to the user once the next.js api route is called by Lambda, preferrably in the form of a react-toastify toast. Is it possible to invoke a frontend toast from the backend? If not, how would I go about doing something similar?
