MCPcopy Create free account
hub / github.com/ckeditor/ckeditor5-react / canUpdateState

Function canUpdateState

src/context/ckeditorcontext.tsx:99–101  ·  view source on GitHub ↗

* 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 )

Source from the content-addressed store, hash-verified

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.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…