Skip to content

Commit

Permalink
fix: useGetStreamInfo refetchOnMount API call fix (parseablehq#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
praveen5959 authored Nov 14, 2024
1 parent c731cea commit 1e6afa4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/hooks/useGetStreamInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const useGetStreamInfo = (currentStream: string, initialFetch: boolean) =
refetchOnWindowFocus: false,
refetchOnMount: false,
enabled: initialFetch,
// currentStream !== '',
onSuccess: (data) => {
setStreamStore((store) => setStreamInfo(store, data));
},
Expand Down
1 change: 1 addition & 0 deletions src/pages/Stream/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const Stream: FC = () => {

const fetchSchema = useCallback(() => {
setStreamStore(streamChangeCleanup);
getStreamInfoRefetch();
refetchSchema();
}, [currentStream]);

Expand Down

0 comments on commit 1e6afa4

Please sign in to comment.