mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Set fetchMock.config.fallbackToNetwork for Storybook (#7369)
GitOrigin-RevId: df957893c8495c582d721716daa20030deb02f72
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user