Skip to content

Commit

Permalink
Merge pull request #5114 from google/infra/5113-storybook-api-cache
Browse files Browse the repository at this point in the history
Disable API cache for stories.
  • Loading branch information
tofumatt authored Apr 20, 2022
2 parents ab4e43d + 9006b93 commit dce817b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@ import '../assets/sass/admin.scss';
import './assets/sass/wp-admin.scss';
// Ensure all globals are set up before any other imports are run.
import './polyfill-globals';
import API from 'googlesitekit-api';
import { resetGlobals } from './utils/resetGlobals';
import { bootstrapFetchMocks } from './fetch-mocks';
import { WithTestRegistry } from '../tests/js/utils';
import { enabledFeatures } from '../assets/js/features';
import { Cell, Grid, Row } from '../assets/js/material-components';

API.setUsingCache( false );

bootstrapFetchMocks();

// Decorators run from last added to first. (Eg. In reverse order as listed.)
Expand Down

0 comments on commit dce817b

Please sign in to comment.