Skip to content

Trash can in profiler does not work as expected #55

@bershanskiy

Description

@bershanskiy

Describe the bug
Trash can only hides log entries, but they reappear once you log one more event.

To Reproduce
Steps to reproduce the behavior:

  1. Download svelte template npx degit sveltejs/template svelte-app
  2. Go to directory: cd svelte-app
  3. Install deps: npm i
  4. Add interctivity to this demo: open svelte-app/src/App.svelte and in <script> tag add let count = 0; const add = () => count += 1; then in <main> tag add <p on:click={add}>Count {count}</p>
  5. Start server with npn run dev and go to wherever that starts
  6. Open Svelte DevTools, restart page, go to profiler
  7. Click on "count" a few times to create a bunch of events
  8. Click on "trash can" and see that all events disappeared (expected)
  9. Click on "count" once more and see that all deleted measurements come back (unexpected)

Expected behavior
I expect trash can to delete all measurements, not hide them temporarily

Environment

  • Browser with version Chrome 91
  • Devtools version DevTools 1.3.0 and current master
  • Svelte version 3.0.0

Additional context
I'm just documening everything that looks like a bug before refactoring for #44.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions