Skip to content

Commit

Permalink
Fix bad warnOnlyOnce minification (#2448)
Browse files Browse the repository at this point in the history
  • Loading branch information
zurfyx authored Jun 16, 2022
1 parent 9a7681f commit 841a651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/lexical-react/src/LexicalPlainTextPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function PlainTextPlugin({
initialEditorState?: InitialEditorStateType;
placeholder: JSX.Element | string;
}): JSX.Element {
if (initialEditorState !== undefined) {
if (__DEV__ && initialEditorState !== undefined) {
deprecatedInitialEditorStateWarning();
}
const [editor] = useLexicalComposerContext();
Expand Down
2 changes: 1 addition & 1 deletion packages/lexical-react/src/LexicalRichTextPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function RichTextPlugin({
initialEditorState?: InitialEditorStateType;
placeholder: JSX.Element | string;
}>): JSX.Element {
if (initialEditorState !== undefined) {
if (__DEV__ && initialEditorState !== undefined) {
deprecatedInitialEditorStateWarning();
}
const [editor] = useLexicalComposerContext();
Expand Down

2 comments on commit 841a651

@vercel
Copy link

@vercel vercel bot commented on 841a651 Jun 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical – ./packages/lexical-website-new

lexical-fbopensource.vercel.app
www.lexical.dev
lexical.dev
lexicaljs.org
lexical-git-main-fbopensource.vercel.app
lexicaljs.com

@vercel
Copy link

@vercel vercel bot commented on 841a651 Jun 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical-playground – ./packages/lexical-playground

lexical-playground.vercel.app
lexical-playground-git-main-fbopensource.vercel.app
playground.lexical.dev
lexical-playground-fbopensource.vercel.app

Please sign in to comment.