Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(headless): fix answer state using the new pattern (#4271)
[SVCC-4040](https://coveord.atlassian.net/browse/SVCC-4040) **Problems:** 1. states of the answer aren't reset after a new request: when you click on like/dislike/expand for example, the new query doesn't reset the state, we still can see the button liked or disliked clicked for example from the previous query. 2. When you submit a feedback, and re-click on likes/disliked, the feedback modal still shows even if the feedback was successfully submitted. **Solutions:** 1. Reset the state when we perform a new query. 2. update `feedbackSumbitted` state when calling `sendFeedback` in the new pattern. **DEMO:** https://github.com/user-attachments/assets/3377b367-5985-4045-8ad6-e072f81c9645 [SVCC-4040]: https://coveord.atlassian.net/browse/SVCC-4040?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
- Loading branch information