Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.7k
feat: rewrite the ObservableArray#9067
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:release/8.0.0
Are you sure you want to change the base?
feat: rewrite the ObservableArray#9067
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This is now an ArrayLike object. Meaning we can do `test[4]= 4;` and the array will be changed as well as a change event trigger.It should work exactly as the current implementation.One nice feature i would have liked which does not work yet is ` test instanceof Array`.If that was to work it means an `ObservableArray` could be used anywhere and even passed to native methods (i think)
I found some issues with the WeakMap and that new implementation. That PR is not ready yet |
b286d51
toa2896c9
Compare@farfromrefug If this were ready soon we could likely include in 8.6, would just need to check any breaking changes to mention if so. Otherwise can target 9.0. |
@NathanWalker that one is really old. I will check if I use it in my fork. Doesn't Dimitris created one doing a better job? |
Uh oh!
There was an error while loading.Please reload this page.
This is now an ArrayLike object. Meaning we can do
test[4]= 4;
and the array will be changed as well as a change event trigger.It should work exactly as the current implementation.
One nice feature i would have liked which does not work yet is
test instanceof Array
.If that was to work it means an
ObservableArray
could be used anywhere and even passed to native methods (i think)Forgot to say why i started this. This PR also brings all array like methods to
ObservableArray
likefindIndex