payload icon indicating copy to clipboard operation
payload copied to clipboard

Blocks randomly enter an infinite loading state when they are added

Open TarikFojnica opened this issue 1 year ago • 3 comments

Describe the Bug

Blocks will randomly get stuck in the loading state after adding them to the layout. After I remove that block and add it again, it will probably work the next time, but will stop working randomly again if I keep adding.

It's not related to block quantity, sometimes stops at the first block. If one block is stuck, and I add the next one, they would resolve together.

https://github.com/user-attachments/assets/88bf428a-8830-4317-bf8e-da7186bf8984

Link to the code that reproduces this issue

https://github.com/payloadcms/payload/tree/main/templates/website

Reproduction Steps

The issue was reproduced in an official Website template. I uploaded the video that's demonstrating the issue. It was initially discovered on my custom project.

Which area(s) are affected? (Select all that apply)

area: ui

Environment Info

payload: 3.7.0
node: 22.11.0
next: 15.1.0

The issue was also reproduced in payload: 3.9.0 on both Mac and Windows dev environment, as well as production environment. It can also be reproduced in Node 20.9.0

TarikFojnica avatar Dec 19 '24 12:12 TarikFojnica

Thank you for reporting on this @TarikFojnica. Sounds like this could be the same issue as described in #8961. Looking into it.

jacobsfletch avatar Dec 19 '24 16:12 jacobsfletch

This did come up for we as well today. Project is on 3.9.

1b0t avatar Dec 19 '24 17:12 1b0t

Thanks @1b0t. After looking into this further, that issue is probably unrelated. But I'm able recreate this issue on my end. We'll get a fix out shortly.

jacobsfletch avatar Dec 19 '24 17:12 jacobsfletch

I have a decently complex page in payload and on the latest version i get this literally all the time image

Is there any timeline for the fix yet? @jacobsfletch

leon-marzahn avatar Dec 25 '24 22:12 leon-marzahn

@leon-marzahn I've got a fix for this queued up in #10175.

jacobsfletch avatar Dec 26 '24 16:12 jacobsfletch

@leon-marzahn Thanks for getting a fix out so quickly, when could we expect a release with this fix? I'm actually really struggling to work on a client website because i keep getting this infinite loading state

leon-marzahn avatar Dec 26 '24 21:12 leon-marzahn

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

github-actions[bot] avatar Dec 28 '24 04:12 github-actions[bot]

🚀 This is included in version v3.12.0

github-actions[bot] avatar Dec 28 '24 17:12 github-actions[bot]