Giter Club home page Giter Club logo

Comments (9)

DuBistKomisch avatar DuBistKomisch commented on June 14, 2024 2

FWIW our experience with 3.16 breaking everything has finally been resolved:

  • Ember 3.16.6 backported the fix for general ArrayProxy wonkiness.
  • My PR #428 fixes some weirdness when the infinity-loader's infinityModel is replaced.
  • We had a rogue observer in our code on the infinity model which getted other computed properties using the same infinity model, but for some reason those computed properties received stale data so the UI using those computed properties was always a page behind, which meant you had to scroll up and down to trigger infinity-loader again. This seems to be a subtle change in Ember behaviour which I doubt will be reverted... moral of the story is don't use observers, we've used Ember.run.next as a workaround for now.

Can't speak for 3.17 since the glimmer VM update seems to have broken ember-wormhole even more than the 2.10 one did. 🤦‍♂️

from ember-infinity.

iamareebjamal avatar iamareebjamal commented on June 14, 2024 1

Instead of fetching another page on scrolling to bottom, all the loader items are appended again, and loaded individually from backend.

And the problem starts from Ember Data 3.15

So, for example, /speakers?page[size]=12&page=1 loads first page. Starting from Ember Data 3.15, instead of loading /speakers?page[size]=12&page=2, it makes 12 requests for each speaker, like /speakers/1, /speakers/2, /speakers/3 ... /speakers/12 and then append the previously loaded speakers again this way

from ember-infinity.

snewcomer avatar snewcomer commented on June 14, 2024

Do you know what specifically broke?

from ember-infinity.

kushthedude avatar kushthedude commented on June 14, 2024

I didn't get time to check as we had to make the production release, but I will let you know once I get into it again.

from ember-infinity.

iamareebjamal avatar iamareebjamal commented on June 14, 2024

Example:

Ember Data 3.16.0 (Broken)
https://dist.iamareebjamal.now.sh/e/a74665c3/speakers

Ember Data 3.14.1 (Correct)
https://eventyay.com/e/a74665c3/speakers

from ember-infinity.

snewcomer avatar snewcomer commented on June 14, 2024

https://github.com/emberjs/ember.js/releases/tag/v3.17.0

It might be good to check if 3.17 fixes it!

from ember-infinity.

iamareebjamal avatar iamareebjamal commented on June 14, 2024

It didn't

from ember-infinity.

boydkr avatar boydkr commented on June 14, 2024

I recently tried upgrading to Ember 3.16, and I get error messages with the InfinityModel:

index.js:172 Uncaught Error: Assertion Failed: You attempted to update `perPageParam` on `<InfinityModel:ember1781>`, but it had already been used previously in the same computation.  Attempting to update a value after using it in a computation can cause logical errors, infinite revalidation bugs, and performance issues, and is not supported.

With a stack trace for the offending modification coming from infinity.js#model:

Ember.setProperties(infinityModel, { ...initParams
      });

from ember-infinity.

snewcomer avatar snewcomer commented on June 14, 2024

Thank you for letting us know! Closing for now since the backport and your PR seems to have resolved all issues! Thanks again for the PR!!

from ember-infinity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.