May I ask how to synchronize the items list with a store?
I tried naive approach such as
import { ListStore } from "./ListStore"
let items = $ListStore
const handleSortEnd = e => { items = e.detail.items ListStore.set(items) }
but got a bizarre case of double headings in draggable elements
Update: here is full code github.com/c0dehamster/drag-and-dr...
You should be able to use the store directly and with no problem. Feel free to create a github issue with a Repl link
Thank you, I figured out how to connect to the store, is was actually very easy. Works as intended now
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
May I ask how to synchronize the items list with a store?
I tried naive approach such as
import { ListStore } from "./ListStore"
let items = $ListStore
const handleSortEnd = e => {
items = e.detail.items
ListStore.set(items)
}
but got a bizarre case of double headings in draggable elements
Update: here is full code
github.com/c0dehamster/drag-and-dr...
You should be able to use the store directly and with no problem. Feel free to create a github issue with a Repl link
Thank you, I figured out how to connect to the store, is was actually very easy. Works as intended now