GithubHelp home page GithubHelp logo

Comments (10)

scalvert avatar scalvert commented on June 11, 2024 2

This is definitely an issue with internal destroyables. One thing to note is, the setupLifelineValidation helper was intended to ensure that consumers had correctly setup runDisposables when they were using lifeline. This helped ensure there was continuity between the associated APIs. Now that we use the destroyable functionality, we no longer need to call runDisposables, and hence no longer really need setupLifelineValidation.

from ember-lifeline.

rwjblue avatar rwjblue commented on June 11, 2024

@snewcomer - What version of ember-source? Also, just FWIW, the updates done in #852 do mean that all destroyables would assert (not just ember-lifeline objects).

from ember-lifeline.

snewcomer avatar snewcomer commented on June 11, 2024

Seeing this on two apps at 3.20.4.

Certainly seems like a really important assertion. Do you think we will have less issues on future 3.22 release? If not, any ideas how I can go about finding the source of these? I tried prying but didn't lead me anywhere.

from ember-lifeline.

rwjblue avatar rwjblue commented on June 11, 2024

Can you provide a repro that I could dig into?

from ember-lifeline.

snewcomer avatar snewcomer commented on June 11, 2024

If this streamlined destroyable API is an internal implementation of this library (destroyables from the user point of view are "just handled" now), do you think this test helper has validity for users? Is it rather something for the library to assert it has wired up the destroyables correctly?

I'll see if I can come up with a repo tonight.

from ember-lifeline.

rwjblue avatar rwjblue commented on June 11, 2024

@snewcomer - The ultimate goal is for @ember/test-helpers or ember-qunit itself to make the assertion, but internally since we migrated to the newer implementation we wanted to be able to avoid duplicating all the code.

FWIW, I am specifically referring to https://github.com/emberjs/rfcs/blob/master/text/0580-destroyables.md#assertdestroyablesdestroyed.

from ember-lifeline.

snewcomer avatar snewcomer commented on June 11, 2024

@rwjblue Here is a repo with two rendering tests - acceptance test passes, integration test fails. Both render the same glimmer component. Note in the apps I work on, there were undestroyables in acceptance tests.

https://github.com/snewcomer/destroyable-lifeline-bug

Screen Shot 2020-08-24 at 8 12 05 PM

from ember-lifeline.

nlfurniss avatar nlfurniss commented on June 11, 2024

Also seeing this is our internal app (3.20.6) after upgrading this addon to the latest version: hundreds of “undestyroyed” objects (mocks in tests, tracking payloads, Ember objects, etc).

from ember-lifeline.

scalvert avatar scalvert commented on June 11, 2024

I think we can dust off @snewcomer's repo and work from there.

from ember-lifeline.

nlfurniss avatar nlfurniss commented on June 11, 2024

I changed the version of Ember in Scott's repro - tests pass, then they fail after 3.20.2

3.18.1 ✅
3.20.0 ✅
3.20.1 ✅
3.20.2 🔴 <<<< Update Glimmer rendering engine to 0.54.2. Fixes an issue with (private for now) destroyables work to enable the destroyables polyfill to work more appropriately.
3.20.6 🔴
3.24.4 🔴
3.27.x 🔴

from ember-lifeline.

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.