We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 627e1ef commit 654909fCopy full SHA for 654909f
3 files changed
CHANGELOG.md
@@ -2,6 +2,16 @@
2
3
# Changelog
4
5
+## 1.4.14
6
+
7
+2025-9-10
8
9
+### Bug Fixes
10
11
+#### `useSSE`
12
13
+- 🐞 Correct abort logic in useSSE.
14
15
## 1.4.13
16
17
2025-9-8
package.json
@@ -1,6 +1,6 @@
1
{
"name": "@tiny-codes/react-easy",
- "version": "1.4.13",
+ "version": "1.4.14",
"description": "Simplify React and AntDesign development with practical components and hooks",
"keywords": [
"react",
src/hooks/useSSE.ts
@@ -112,7 +112,7 @@ const useSSE = <T = any>(props: UseSSEProps<T>) => {
112
113
const abort = useRefFunction(() => {
114
setIsConnected(false);
115
- if (isConnected && abortCtrlRef.current) {
+ if (!isConnected && abortCtrlRef.current) {
116
abortCtrlRef.current.abort();
117
}
118
});
0 commit comments