This repo exists to reproduce performance issues with Payload CMS 3.0.0-beta.68. Specifically, there is a threshold of rich text editors in a given document that will trigger a performance degradation that is so severe that it actually prevents saving (auto saving or manual saving).
- Copy
.env.example
to.env
- Install dependencies:
yarn
- Make a production build:
yarn build
- Start the server:
yarn start
- Create a new
Page
document - Create a PageContent Panel
- Insert a Cards block in the
Content
field - Add three or so cards to the cards block
- Duplicate the panel several times. About 14 will consistently reproduce.
- Type two or three sentences (actually type, don't copy/paste) into one of the card content fields
- The card content fields become very high latency at this point. There is a large delay between keyboard input and feedback.
- More importantly, saving will essentially stop occurring. Sometimes a single autosave will trigger after the first few characters, but none of the remaining content will ever be saved, even after waiting several minutes. If you disable autosave in the config, you'll be able to manually click the Save button, but the saved content will similarly be missing all but the first few characters of the change.