diff --git a/.storybook/preview.jsx b/.storybook/preview.jsx index 51602d59..987f87a4 100644 --- a/.storybook/preview.jsx +++ b/.storybook/preview.jsx @@ -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: { @@ -13,6 +22,7 @@ const preview = { }, decorators: [ (Story) => ( + // @ts-ignore - 스토리북 타입 무시