(instance: Instance<T>)
| 20 | * Returns the instance's initial (outmost) root. |
| 21 | */ |
| 22 | export function findInitialRoot<T>(instance: Instance<T>): RootStore { |
| 23 | let root = instance.root |
| 24 | while (root.getState().previousRoot) root = root.getState().previousRoot! |
| 25 | return root |
| 26 | } |
| 27 | |
| 28 | export type Act = <T = any>(cb: () => Promise<T>) => Promise<T> |
| 29 |
no outgoing calls
no test coverage detected
searching dependent graphs…