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 c1a58c0 commit 8475e31
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .storybook/preview.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import '../src/index.css';
import { MemoryRouter } from 'react-router-dom';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';

const preview = {
parameters: {
Expand All @@ -10,7 +11,13 @@ const preview = {
}
}
},
decorators: [(Story) => <Story />]
decorators: [
(Story) => (
<QueryClientProvider client={queryClient}>
<Story />
</QueryClientProvider>
)
]
};

export default preview;

0 comments on commit 8475e31

Please sign in to comment.