An NPM user mentioned he's having trouble using Lexical with Remix because of SSR. In particular, window is not defined on the server-side where the module is loaded.
window is usually a best practice in Meta. Do we want to stick with with it and force frameworks to fix window themselves? Or do we want to drop the prefix?
- What steps are we taking to prevent the text content from being editable before the module and up and running on the client? On WWW we sometimes use to readOnly flag to regulate this (even though I'm not very sure it's fixing the whole thing).
Not sure if either of this can/should be simplified on the Lexical side but we should at least document how to work around this as it's a common use case.
An NPM user mentioned he's having trouble using Lexical with Remix because of SSR. In particular, window is not defined on the server-side where the module is loaded.
windowis usually a best practice in Meta. Do we want to stick with with it and force frameworks to fixwindowthemselves? Or do we want to drop the prefix?Not sure if either of this can/should be simplified on the Lexical side but we should at least document how to work around this as it's a common use case.