From cb5d70df0ae1c2d2e80aa9f6b0e6d1d7536a7c25 Mon Sep 17 00:00:00 2001 From: cmlim0070 <87525734+cmlim0070@users.noreply.github.com> Date: Fri, 6 Dec 2024 11:32:21 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=EC=BF=BC=EB=A6=AC=ED=81=B4=EB=9D=BC?= =?UTF-8?q?=EC=9D=B4=EC=96=B8=ED=8A=B8=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .storybook/preview.jsx | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 - 스토리북 타입 무시