p5.js-web-editor icon indicating copy to clipboard operation
p5.js-web-editor copied to clipboard

Sketch visibility change (Public/Private) does not update UI without manual refresh

Open Jatin24062005 opened this issue 9 months ago • 3 comments

p5.js version

No response

What is your operating system?

None

Web browser and version

No response

Actual Behavior

When changing a sketch’s visibility between Public and Private from the Sketches list, the backend updates the visibility correctly, but the UI does not reflect the change immediately.

The user must manually refresh the page to see the updated visibility status.

  • Visibility change is saved correctly on the backend.
  • The Sketches list continues to show the previous visibility state.
  • A manual page refresh is required to see the correct visibility.
Image

Expected Behavior

  • After changing visibility (Public ↔ Private), the UI should update immediately.
  • No manual page refresh should be required.

Steps to reproduce

Steps:

  1. Go to My Sketches
  2. Click the visibility dropdown for any sketch
  3. Change visibility from Public → Private or Private → Public
  4. Observe the visibility label/icon in the list

Snippet:


// Paste your code here :)

I am willing to submit a PR!

Jatin24062005 avatar Feb 12 '26 18:02 Jatin24062005

@raclim can i work on this?

Jatin24062005 avatar Feb 12 '26 19:02 Jatin24062005

Yes, just assigned! Thanks for flagging this!

raclim avatar Feb 12 '26 19:02 raclim

@raclim can i work on this?

Aashivdev avatar Feb 13 '26 04:02 Aashivdev