Skip to content

Commit

Permalink
fix : 쿼리클라이언트 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
cmlim0070 committed Dec 6, 2024
1 parent 8475e31 commit cb5d70d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .storybook/preview.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
import React from 'react';
import '../src/index.css';
import { MemoryRouter } from 'react-router-dom';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';

const queryClient = new QueryClient({
defaultOptions: {
queries: {
retry: false // 스토리북에서는 재시도 비활성화
}
}
});

const preview = {
parameters: {
controls: {
Expand All @@ -13,6 +22,7 @@ const preview = {
},
decorators: [
(Story) => (
// @ts-ignore - 스토리북 타입 무시
<QueryClientProvider client={queryClient}>
<Story />
</QueryClientProvider>
Expand Down

0 comments on commit cb5d70d

Please sign in to comment.