File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 22
33# Changelog
44
5+ ## 1.4.14
6+
7+ 2025-9-10
8+
9+ ### Bug Fixes
10+
11+ #### ` useSSE `
12+
13+ - 🐞 Correct abort logic in useSSE.
14+
515## 1.4.13
616
7172025-9-8
Original file line number Diff line number Diff line change 11{
22 "name" : " @tiny-codes/react-easy" ,
3- "version" : " 1.4.13 " ,
3+ "version" : " 1.4.14 " ,
44 "description" : " Simplify React and AntDesign development with practical components and hooks" ,
55 "keywords" : [
66 " react" ,
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ const useSSE = <T = any>(props: UseSSEProps<T>) => {
112112
113113 const abort = useRefFunction ( ( ) => {
114114 setIsConnected ( false ) ;
115- if ( isConnected && abortCtrlRef . current ) {
115+ if ( ! isConnected && abortCtrlRef . current ) {
116116 abortCtrlRef . current . abort ( ) ;
117117 }
118118 } ) ;
You can’t perform that action at this time.
0 commit comments