Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Refactor thread state management #4350

Merged
merged 2 commits into from
Dec 29, 2024

Conversation

louis-jan
Copy link
Contributor

@louis-jan louis-jan commented Dec 29, 2024

Describe Your Changes

• Combined isGeneratingResponseAtom & isWaitingForResponse with isBlockingSendAtom
• Update dependencies in ChatBody, ChatInput, and MessageToolbar components
• Remove unused code and variables
• Avoid unnecessary rerendering

CleanShot 2024-12-29 at 22 44 08

Changes made

This pull request includes several changes to improve the handling of thread states and reduce unnecessary re-renders in the application. The most important changes involve replacing individual state atoms with a combined state atom and updating various components to use this new combined state.

Changes to thread state handling:

Updates to components to use combined state:

• Replace isGeneratingResponseAtom with isBlockingSendAtom
• Update dependencies in ChatBody, ChatInput, and MessageToolbar components
• Remove unused code and variables
@louis-jan louis-jan requested a review from urmauur December 29, 2024 15:45
@github-actions github-actions bot added the type: chore Maintenance, operational label Dec 29, 2024
@louis-jan louis-jan merged commit 3af34c0 into main Dec 29, 2024
8 of 9 checks passed
@louis-jan louis-jan deleted the fix/reduce-state-rendering-lock-resend-on-generating branch December 29, 2024 16:05
@github-actions github-actions bot added this to the v0.5.12 milestone Dec 29, 2024
Copy link
Contributor

github-actions bot commented Dec 29, 2024

Copy link
Contributor

This is the build for this pull request. You can download it from the Artifacts section here: Build URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore Maintenance, operational
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants