Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use iterator for itemKey #72

Open
seansean11 opened this issue Oct 28, 2016 · 2 comments
Open

Use iterator for itemKey #72

seansean11 opened this issue Oct 28, 2016 · 2 comments

Comments

@seansean11
Copy link

seansean11 commented Oct 28, 2016

I'm working on a list of todos that are stored in localStorage as an array of objects. Instead of having to try to create a unique itemKey property on each of the todo objects, I'd like to leverage the iterator of my Reorder list. Is this possible?

@JakeSidSmith
Copy link
Owner

I had fixed this in another experimental branch whereby you could pass a function as the itemKey (which you could then use to return a suitable key), but this has since become unnecessary due to a re-write I'm working on: #71

@JakeSidSmith
Copy link
Owner

Update: just released 3.0.0-alpha.0 on npm. I'd suggest checking out this version, it should be far more stable than the existing release, fixes a lot of bugs, and adds the ability to drag between lists. :)

See the readme after installation, there's been a considerable change to the interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants