* Checks if the state can be updated based on the provided initialization ID. * * @param initializationID The initialization ID to compare with the previous one. * @returns A boolean indicating whether the state can be updated.
( initializationID: string )
| 97 | * @returns A boolean indicating whether the state can be updated. |
| 98 | */ |
| 99 | function canUpdateState( initializationID: string ) { |
| 100 | return prevWatchdogInitializationIDRef.current === initializationID && isMountedRef.current; |
| 101 | } |
| 102 | |
| 103 | /** |
| 104 | * Initializes the context watchdog. |
no outgoing calls
no test coverage detected
searching dependent graphs…