(fiber: FiberNode)
| 204 | }; |
| 205 | |
| 206 | function safelyAttachRef(fiber: FiberNode) { |
| 207 | const ref = fiber.ref; |
| 208 | if (ref !== null) { |
| 209 | const instance = fiber.stateNode; |
| 210 | if (typeof ref === 'function') { |
| 211 | ref(instance); |
| 212 | } else { |
| 213 | ref.current = instance; |
| 214 | } |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | export const commitMutationEffects = commitEffects( |
| 219 | 'mutation', |
no outgoing calls
no test coverage detected