#Form State Resetting on Hot Reload When Using Block Field

5 messages · Page 1 of 1 (latest)

whole jolt
#

I'm working with a Global Document that includes a Block field allowing selection from multiple block types.

However, during development, I'm running into a really frustrating issue:
There's a hot reload every few seconds, the data I’ve entered into the form gets reset every few seconds, causing me to lose all my unsaved changes.

This is making the entire dev experience extremely painful.

The issue only happens in dev mode, presumably due to hot reload.
I'm using PayloadCMS 3.49.0

Is there a way to preserve form state or disable this automatic form reset during development?

Attaching the screen record

whole jolt
#

Bumping up the post, still couldn't find a solution for this.
HMR seems to be sending pings every few seconds even without any file changes.

ornate shard
#

I just did a fresh install of for a new project and I can't even create a new user. It just keeps resetting the form. Will be watchign hopefully there's an easy fix for this? 😄

void moon
#

I'm noticing this on my deployed /admin login page. By the time I get halfway through typing the password the form resets. I can imagine this will get really annoying for users.