pzuraq / macro-decorators

Decorators for getter/setter macros!
https://pzuraq.github.io/macro-decorators/
MIT License
62 stars 10 forks source link

Fix array decorators breaking when array is nullish #38

Open robinborst95 opened 1 year ago

robinborst95 commented 1 year ago

Fixes #21. In our application we've run several times into this issue after the transition from the @ember/object/computed decorators to the equivalents in this addon, because the computed decorators do ensure the return value is an array. Especially when the path represents a value that is still being resolved, this is a very common problem.

pzuraq commented 1 year ago

I'm no longer actively maintaining this library and don't have bandwidth to review/merge/release changes at the moment. At some point I'd like to update it to the latest decorators spec, which will be somewhat different in implementation.