payload icon indicating copy to clipboard operation
payload copied to clipboard

Debounce for getFormState

Open lazidoca opened this issue 1 year ago • 1 comments

Link to reproduction

No response

Payload Version

3.0 beta 56

Node Version

20

Next.js Version

15

Describe the Bug

I am trying Payload 3.0 beta, and I noticed that during typing the content in the richtext lexical, every key stroke initializes a HTTP to /api/form-state. This could affect the server if many users editing the content.

image

This would be solved if the getFormState is debounced.

Reproduction Steps

Open Chrome Dev Tools while editing the content in Richtext Lexical

Adapters and Plugins

No response

lazidoca avatar Jun 30 '24 02:06 lazidoca

This issue has been marked as stale due to lack of activity.

To keep this issue open, please indicate that it is still relevant in a comment below.

github-actions[bot] avatar Dec 13 '24 05:12 github-actions[bot]

This issue was automatically closed due to lack of activity.

github-actions[bot] avatar Dec 21 '24 05:12 github-actions[bot]

Tested this in the latest v3 release, doesn't seem to be an issue anymore

AlessioGr avatar Jan 14 '25 21:01 AlessioGr

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.

github-actions[bot] avatar Jan 16 '25 04:01 github-actions[bot]