(target)
| 3776 | var restoreQueue = null; |
| 3777 | |
| 3778 | function restoreStateOfTarget(target) { |
| 3779 | // We perform this translation at the end of the event loop so that we |
| 3780 | // always receive the correct fiber here |
| 3781 | var internalInstance = getInstanceFromNode(target); |
| 3782 | if (!internalInstance) { |
| 3783 | // Unmounted |
| 3784 | return; |
| 3785 | } |
| 3786 | !(fiberHostComponent && typeof fiberHostComponent.restoreControlledState === 'function') ? invariant(false, 'Fiber needs to be injected to handle a fiber target for controlled events. This error is likely caused by a bug in React. Please file an issue.') : void 0; |
| 3787 | var props = getFiberCurrentPropsFromNode(internalInstance.stateNode); |
| 3788 | fiberHostComponent.restoreControlledState(internalInstance.stateNode, internalInstance.type, props); |
| 3789 | } |
| 3790 | |
| 3791 | var injection$2 = ReactControlledComponentInjection; |
| 3792 |
no test coverage detected