-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: SSE 수신 시 실행되는 setQueryData가 제대로 작동하지 않는 문제 해결
- 기존 로직의 경우 이전 값인 old의 값을 그대로 변경해 참조가 유지되었음 - 참조가 그대로 유지되면 tanstack-query는 값이 변경되지 않았다고 판단되어 갱신이 일어나지 않을 수 있음 - 따라서, 새로운 변수 newThread를 만들어 이를 반환하는 것으로 참조를 변경
- Loading branch information
Showing
1 changed file
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters