Drag and drop list not reactive

Open
#319 1 comment 0 reactions 0 assignees View on GitHub

@LilMouse is already working on this.

Since Nov 2, 2026.

  • #320 by @LilMouse — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
40/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
frontend

Research direction

Start with the DragAndDropList component and how it takes its items prop, then reproduce the report with the use_signal snippet from the issue. Check whether the list re-renders when the signal's vector changes, since the reporter says pushed items never appear. Done means either the list updates reactively when the signal changes, or the maintainers confirm the static-items behaviour is intended and document it.

Written by the indexing model from the issue text.

Description

When updating my signal vector with items for my drag and drop list, the component is never re-rendered.

A little test I ran didn't work

let signal_data = use_signal(||vec!["Hello", "World"]);
let items = signal_data.iter().map(|value|{
    rsx! {
        span { key: "{value}", "{value}" }
    }
}).collect();
rsx! {
    DragAndDropList { items }
}

And then a button that calls

signal_data().push("New data")

The items "Hello" and "World" do show up, but my "New data" doesn't.
Is this intended behavior or a bug?

Because I would like a dynamic drag and drop list where I can add items for something like a TODO list. But since the items are static I can't do that.

Dominant language
Rust
Stars
358
Forks
90
Avg merge
54m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DioxusLabs/dioxus-components

All issues in DioxusLabs/dioxus-components

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.