p5.js-web-editor
p5.js-web-editor copied to clipboard
Sketch visibility change (Public/Private) does not update UI without manual refresh
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.
Expected Behavior
- After changing visibility (Public ↔ Private), the UI should update immediately.
- No manual page refresh should be required.
Steps to reproduce
Steps:
- Go to My Sketches
- Click the visibility dropdown for any sketch
- Change visibility from Public → Private or Private → Public
- Observe the visibility label/icon in the list
Snippet:
// Paste your code here :)
I am willing to submit a PR!
@raclim can i work on this?
Yes, just assigned! Thanks for flagging this!
@raclim can i work on this?