Coder Social home page Coder Social logo

Comments (4)

hhff avatar hhff commented on September 20, 2024

Looks like https://github.com/hhff/ember-infinity/blob/master/addon/components/infinity-loader.js#L18 and https://github.com/hhff/ember-infinity/blob/master/addon/components/infinity-loader.js#L19 are the culprits. We'd love a PR for this!

from ember-infinity.

Ramblurr avatar Ramblurr commented on September 20, 2024

Wrapping the body of didInsertElement with a call to Ember.run.scheduleOnce fixed the deprecation warning for me:

  didInsertElement() {
    this._super(...arguments);
    Ember.run.scheduleOnce('afterRender', this, () => {
      this._setupScrollable();
      this.set('guid', Ember.guidFor(this));
      this._bindEvent('scroll');
      this._bindEvent('resize');
      this._loadMoreIfNeeded();
    });
  },

This probably isn't an ideal solution as it causes an additional render, but I'm not sure what the ideal solution looks like.

See the discussion here: emberjs/ember.js#11493

from ember-infinity.

hhff avatar hhff commented on September 20, 2024

Cool yeah thanks @Ramblurr - I'm planning to work on this as part of #134

from ember-infinity.

snewcomer avatar snewcomer commented on September 20, 2024

Closing for now. Feel free to open again if somebody notices a problem!

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.