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

Function isContextWatchdogReadyToUse

src/context/ckeditorcontext.tsx:203–206  ·  view source on GitHub ↗
( obj: any )

Source from the content-addressed store, hash-verified

201 * while the context is still being initialized because context setState is pending.
202 */
203export const isContextWatchdogReadyToUse = ( obj: any ): obj is ExtractContextWatchdogValueByStatus<'initialized'> => (
204 isContextWatchdogValueWithStatus( 'initialized' )( obj ) &&
205 obj.watchdog.state === 'ready'
206);
207
208/**
209 * Represents the value of the ContextWatchdog in the CKEditor context.

Callers 3

_initializeEditorMethod · 0.85
useMultiRootEditorFunction · 0.85
_initializeEditorFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…