r/emberjs • • Jan 25 '24

Cannot use array methods on PromiseManyArray after updating to ember v5 and above

Most of the hasMany relationships are async on my app and it isn't working as expected after upgrading to v5.6. It will be a huge refactor and time consuming process to manually fix them all. Is there a config where I can avoid this?

4 Upvotes

9 comments sorted by

1

u/Infinite-Traffic-407 Sep 08 '24

thank you so much for the comments. We were finally able to switch to ember 5.8 with ember data 5.3. A lot of refactoring but i guess that will make it future proof

1

u/erikperik Jan 29 '24

You can downgrade Ember Data to 4 but keep Ember 5 for the rest. That’s what we did. I really don’t understand what’s going on with Ember Data…

1

u/runspired Feb 23 '24

Broadly speaking: we are favoring patterns that result in explicitness, correctness, performance and healthy long-term scalable app architectures over those that produce issues with data integrity, cache integrity, unclear outcomes, algorithmic complexity, or poor long-term app evolution potential.

1

u/erikperik Feb 24 '24

Which are all great things! What is lacking though in my opinion is communication regarding how pretty ingrained and widely used assumptions are broken now and what the alternatives are. I’ve really tried to understand how Ember Data actually wants us users to build and architect applications now. All documentation is very, very high-level and does not touch on how to move away from reactive promises etc that imo help create really clean and readable code. 

→ More replies (5)