buttonwoodcx / bcx-aurelia-reorderable-repeat

An Aurelia repeater supports drag & drop reordering automatically.
https://buttonwoodcx.github.io/doc-bcx-aurelia-dnd/reorderable-repeat
MIT License
19 stars 5 forks source link

Aurelia 2 #28

Open elitastic opened 1 year ago

elitastic commented 1 year ago

As Aurelia 2 is in beta now, are there any plans to support Aurelia 2?

Thanks for a short feedback.

3cp commented 1 year ago

3cp/aurelia2-dnd#2

I need to get back to it.

Aurelia 2 has this sync mode of change notification which causes issue of state tearing.

bigopon commented 1 year ago

Aurelia 2 has this sync mode of change notification which causes issue of state tearing.

Instead of spreading state across multiple fields, maybe group them all into a single object? if they need together, maybe we need to group them together?

3cp commented 1 year ago

I can use the batch api if it's available.

3cp commented 1 year ago

This issue is resolvable here because this is an aurelia plugin.

For some other js lib out of aurelia landscape, aurelia 1 can observe any POJO change without any problem. But aurelia 2 might have trouble, user might need to wrap it behind batch api in user's app code. This is main worry I had about aurelia 2's sync observing.

elitastic commented 1 year ago

What do you guys think, does anyone find time to take a look at this in the near future?

3cp commented 1 year ago

@bigopon is the batch API ready yet?

bigopon commented 1 year ago

@3cp it is for both normal and collection

3cp commented 1 year ago

Thx, I will have a look.

3cp commented 11 months ago

Batch api worked well in https://github.com/3cp/aurelia2-dnd v0.3.0.

Aurelia 2's reorderable-repeat will take some work as the repeater in Aurelia 2 is totally different from Aurelia v1.