Skip to content

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

@Jatin24062005

Description

@Jatin24062005

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!

Metadata

Metadata

Assignees

Labels

BugError or unexpected behaviors

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions