(containerTag: number)
| 177 | } |
| 178 | |
| 179 | function stopSurface(containerTag: number) { |
| 180 | const root = roots.get(containerTag); |
| 181 | if (root) { |
| 182 | // TODO: Is it safe to reset this now or should I wait since this unmount could be deferred? |
| 183 | updateContainer(null, root, null, () => { |
| 184 | // Remove the reference to the public instance to prevent memory leaks. |
| 185 | root.containerInfo.publicInstance = null; |
| 186 | |
| 187 | roots.delete(containerTag); |
| 188 | }); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | function createPortal( |
| 193 | children: ReactNodeList, |
nothing calls this directly
no test coverage detected