File tree 2 files changed +2
-2
lines changed
packages/lexical-react/src
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export function PlainTextPlugin({
29
29
initialEditorState ?: InitialEditorStateType ;
30
30
placeholder : JSX . Element | string ;
31
31
} ) : JSX . Element {
32
- if ( initialEditorState !== undefined ) {
32
+ if ( __DEV__ && initialEditorState !== undefined ) {
33
33
deprecatedInitialEditorStateWarning ( ) ;
34
34
}
35
35
const [ editor ] = useLexicalComposerContext ( ) ;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export function RichTextPlugin({
29
29
initialEditorState ?: InitialEditorStateType ;
30
30
placeholder : JSX . Element | string ;
31
31
} > ) : JSX . Element {
32
- if ( initialEditorState !== undefined ) {
32
+ if ( __DEV__ && initialEditorState !== undefined ) {
33
33
deprecatedInitialEditorStateWarning ( ) ;
34
34
}
35
35
const [ editor ] = useLexicalComposerContext ( ) ;
You can’t perform that action at this time.
0 commit comments