-
The project was renamed from
react-fetcher
toredial
. -
@prefetch
and@defer
have been deprecated in favour of@provideHooks
.-import { prefetch, defer } from 'react-fetcher'; +import { provideHooks } from 'redial'; -@prefetch(() => { ... }) -@defer(() => { ... }) +provideHooks({ + fetch: () => { ... }, + defer: () => { ... } +}) class MyRouteHandler extends Component { ... }
-
getPrefetchedData
andgetDeferredData
have been deprecated in favour oftrigger
.-import { getPrefetchedData, getDeferredData } from 'react-fetcher'; +import { trigger } from 'redial'; -getPrefetchedData(components, locals).then(() => { ... }); +trigger('fetch', components, locals).then(() => { ... }); -getDeferredData(components, locals).then(() => { ... }); +trigger('defer', components, locals).then(() => { ... });