File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import type { Preview } from "@storybook/react-vite";
55import { initialize , mswLoader } from "msw-storybook-addon" ;
66import { useEffect } from "react" ;
77import React from "react" ;
8+ import { client } from "../src/api/infra/gitHub/gitHubClient" ;
89
910// Initialize MSW
1011initialize ( ) ;
@@ -28,6 +29,8 @@ const preview: Preview = {
2829 ( Story , context ) => {
2930 const QueryParamsDecorator = ( ) => {
3031 useEffect ( ( ) => {
32+ client . cache . reset ( ) ;
33+
3134 const queryParams = context . parameters ?. query ;
3235 if ( queryParams && typeof queryParams === "object" ) {
3336 const url = new URL ( window . location . href ) ;
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ const client = new ApolloClient({
55 cache : new InMemoryCache ( ) ,
66} ) ;
77
8+ export { client } ;
9+
810export interface GitHubTeam {
911 name : string ;
1012}
You can’t perform that action at this time.
0 commit comments