()
| 19 | }; |
| 20 | |
| 21 | export const resolveDispatcher = (): Dispatcher => { |
| 22 | const dispatcher = currentDispatcher.current; |
| 23 | |
| 24 | if (dispatcher === null) { |
| 25 | throw new Error('hook只能在函数组件中执行'); |
| 26 | } |
| 27 | return dispatcher; |
| 28 | }; |
| 29 | |
| 30 | export default currentDispatcher; |
no outgoing calls
no test coverage detected