Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debounce for getFormState #6988

Open
lazidoca opened this issue Jun 30, 2024 · 0 comments
Open

Debounce for getFormState #6988

lazidoca opened this issue Jun 30, 2024 · 0 comments
Labels
status: needs-triage Possible bug which hasn't been reproduced yet v3

Comments

@lazidoca
Copy link

lazidoca commented Jun 30, 2024

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 lazidoca added status: needs-triage Possible bug which hasn't been reproduced yet v3 labels Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs-triage Possible bug which hasn't been reproduced yet v3
Projects
None yet
Development

No branches or pull requests

1 participant