The spinner on the home page keeps rolling in case there is a fault from the backend.
🚨 Problem:
If the backend is not running
If there is some error in the connection.
🪜 Steps to reproduce:
Clone the repository.
Run the front end withoug the backend.
Or do not give proper Opne AI API key.
Sometimes the problem persists due to mi configurations in the local storage. In this case if we run even both front end as well as backend even then the issue persists.
✅ Solution:
I have introduced another state hasError which keeps track of whether there is any error in the conection. In case there is erro UI will display error message along with the toast. So backend won't be blocker.
The spinner on the home page keeps rolling in case there is a fault from the backend.
🚨 Problem:
🪜 Steps to reproduce:
✅ Solution:
I have introduced another state hasError which keeps track of whether there is any error in the conection. In case there is erro UI will display error message along with the toast. So backend won't be blocker.
@ItzCrazyKns