another auth checkpoint

webhook issue resolved
This commit is contained in:
dimitar committed 2026-02-04 22:36:28 +01:00
1 parent cb2355adcd
commit 3718882f5b
8 files changed
+388 -10

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
import { useEffect, useRef, useState } from 'react';
import { useEffect, useRef, useState, useMemo } from 'react';
export interface LiveBlogStreamEvent {
type: 'connected' | 'update' | 'status-change' | 'pin-update' | 'error';
@@ -22,7 +22,7 @@ export function useLiveBlogStream(
maxReconnectAttempts: 10,
};
const mergedOptions = { ...defaultOptions, ...options };
const mergedOptions = useMemo(() => ({ ...defaultOptions, ...options }), [options, defaultOptions]);
const [isConnected, setIsConnected] = useState(false);
const [lastEvent, setLastEvent] = useState<LiveBlogStreamEvent | null>(null);
const [connectionError, setConnectionError] = useState<string | null>(null);