mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 01:23:59 +00:00
Set fetchMock.config.fallbackToNetwork for Storybook (#7369)
GitOrigin-RevId: df957893c8495c582d721716daa20030deb02f72
This commit is contained in:
parent
2056a85199
commit
ae76850d39
1 changed files with 1 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
import { useEffect } from 'react'
|
||||
import fetchMock from 'fetch-mock'
|
||||
fetchMock.config.fallbackToNetwork = true
|
||||
|
||||
/**
|
||||
* Run callback to mock fetch routes, call restore() when unmounted
|
||||
|
|
Loading…
Reference in a new issue