Skip to content

Commit

Permalink
dont load on other non run operations
Browse files Browse the repository at this point in the history
  • Loading branch information
roodboi committed Nov 9, 2023
1 parent 5c7cfd0 commit 6490ad7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silent-gorillas-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"next-assistants": patch
---

dont set loading on all operations
1 change: 0 additions & 1 deletion packages/next-assistants/src/client/hooks/use-thread.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ export function useThread({
}

const handleOperation = async (operation, successCallback?: (result) => void) => {
setLoading(true)
try {
const result = await operation()

Expand Down

0 comments on commit 6490ad7

Please sign in to comment.