Skip to content

Demo data doesn't update on delete #825

Closed

Description

@xixixao

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

Delete some data from the data input area
See that the search doesn't reflect it
You have to type to actually have the data update

Maybe some debouncing is breaking this

Screenshots

No response

Activity

  1. xixixao commented on May 20, 2026

    @xixixao
    Author

    I thought I had it figured out but it's even more complicated, I'm not exactly sure when the data actually updates. Sometimes it does, sometimes it does not.

  2. krisk commented on May 21, 2026

    @krisk
    Owner

    Thanks for catching this and reporting it! Fixed and deployed now.

    It wasn't debouncing (there's no debounce in the playground). Two separate things were going on:

    1. The "N items" count was non-reactive, so it never changed even on a clean delete.
    2. Editing the data often leaves transiently invalid JSON for a keystroke or two, usually a trailing comma when you delete the last entry. The demo was swallowing that parse error silently, so nothing updated and there was no hint why.

    The count updates reactively now, and invalid JSON shows an "Invalid JSON" badge instead of failing quietly. Live on https://fusejs.io/demo.html (you may need a hard refresh).

  3. xixixao commented on May 21, 2026

    @xixixao
    Author

    Great! The reason I couldn't figure out why it's not updating is that I didn't expect a strict JSON, but JS. Thanks for the quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions