Improve performance by memoizing chat history, not updating full local storage if only the tip of the day changed, disabling redux checks, and synchronizing api calls to happen at the same time
Type of change
Optimization
How to Test
Click on new chat and see how long it takes to update.
Checklist
[ ] My code follows the code style of this project.
[ ] I have performed a self-review of my code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] New and existing unit tests pass locally with my changes.
[ ] Any dependent changes have been merged and published in downstream modules.
[ ] I have updated the documentation where necessary.
Pull Request Title
https://github.com/orgs/smallcloudai/projects/5/views/1?pane=issue&itemId=80502312
Description
Improve performance by memoizing chat history, not updating full local storage if only the tip of the day changed, disabling redux checks, and synchronizing api calls to happen at the same time
Type of change
Optimization
How to Test
Click on new chat and see how long it takes to update.
Checklist
Linked Issues
https://github.com/orgs/smallcloudai/projects/5/views/1?pane=issue&itemId=80502312
Additional Notes
I am not sure if this actually solves the performance issue since I don't have this issue on my own pc.