@lexical/internal/warnOnlyOnce
Functions
warnOnlyOnce()
warnOnlyOnce(
message): () =>void
Defined in: packages/lexical-internal/src/warnOnlyOnce.ts:19
Returns a function that logs message with console.warn the first time it
is called (and never in production). Creating one has no effect, so the
build annotates module-scope calls and a bundler can drop an unused warning.
@NO_SIDE_EFFECTS
Parameters
message
string
Returns
() => void