2020-05-19 09:09:59 +02:00
|
|
|
import React from 'react'
|
2019-03-23 21:00:31 +01:00
|
|
|
|
|
|
|
type CaptureFn = (moduleName: string) => void
|
|
|
|
|
2020-02-17 22:16:19 +01:00
|
|
|
export const LoadableContext = React.createContext<CaptureFn | null>(null)
|
2020-04-13 11:55:42 +02:00
|
|
|
|
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
|
|
LoadableContext.displayName = 'LoadableContext'
|
|
|
|
}
|