Skip to content

[Bug] Dashboard data not showing up after clicking "Clear" #3

Description

@starinajes

What happened?

bug.webm

I’m having an issue where dashboard data stops displaying after I use the "Clear" button
(https://dashboard.debugphp.dev/)

Steps to reproduce:

  1. Run a debug request — the dashboard renders the data correctly.
  2. Click the "Clear" button — the data disappears (as expected).
  3. Run the debug request again — the data doesn't show up at all.
  4. Refresh the page — the data finally appears.

I've attached a video demonstrating the issue

Env:
OS: Ubuntu 22.04.3 LTS
Browser: Firefox 147.0.4

Code:

Debug::startTimer('start');

var_dump('test');
$user = new stdClass();
$user->name = 'Name';
$user->last = ['1',2,3,4,'5'];

Debug::send('Hello DebugPHP!');
Debug::send($user);

Debug::stopTimer('start');
Debug::metric('Memory', memory_get_usage(true) / 1024 / 1024 . ' MB');

What did you expect to happen?

After clicking 'Clear' and then running a new request, the data should appear on the dashboard automatically. I shouldn't have to refresh the page to see the new data

Steps to reproduce

1. Run a debug request — the dashboard renders the data correctly.
2. Click the "Clear" button — the data disappears (as expected).
3. Run the debug request again — the data doesn't show up at all.
4. Refresh the page — the data finally appears.

PHP Version

8.4.1

DebugPHP Version

1.0.0

Server setup

debugphp.dev (hosted)

Additional context

Thanks for the library, it looks cool

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions