()
| 169 | } |
| 170 | |
| 171 | function createHook(): Hook { |
| 172 | if (numberOfReRenders > 0) { |
| 173 | throw new Error('Rendered more hooks than during the previous render'); |
| 174 | } |
| 175 | return { |
| 176 | memoizedState: null, |
| 177 | queue: null, |
| 178 | next: null, |
| 179 | }; |
| 180 | } |
| 181 | |
| 182 | function createWorkInProgressHook(): Hook { |
| 183 | if (workInProgressHook === null) { |
no outgoing calls
no test coverage detected