instance v1 to v2 convesion

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2023-10-27 21:18:30 +02:00
parent 59115c8dc5
commit 7c752f088c
10 changed files with 165 additions and 40 deletions

View File

@@ -14,7 +14,7 @@ function useTimelineStream(...args: Parameters<typeof connectTimelineStream>) {
const stream = useRef<(() => void) | null>(null);
const accessToken = useAppSelector(getAccessToken);
const streamingUrl = instance.urls?.streaming_api;
const streamingUrl = instance.configuration.urls.streaming;
const connect = () => {
if (enabled && streamingUrl && !stream.current) {