Giter VIP home page Giter VIP logo

Comments (10)

Gaurav0 avatar Gaurav0 commented on May 15, 2024

I would actually like to at least see an addon that restores all the ArrayController / ObjectController / reduceComputed / ObjectProxy / ArrayProxy etc. behavior. This could really help some enterprises with large codebases move to 2.0 at some point in the current century. :)

from rfcs.

mixonic avatar mixonic commented on May 15, 2024

@Gaurav0 there is an addon for controllers (ember-legacy-controllers) and views (ember-legacy-views). array/reduce computed are gone, but the macros that represented nearly all of the usage are still present. Just the direct API access to the array/reduce computed classes is gone.

Please keep this issue focused on the original topic, object and array proxies.

from rfcs.

workmanw avatar workmanw commented on May 15, 2024

👍 I use both ArrayProxy and ObjectProxy on occasion. I think quite a few people also use ember-buffered-proxy which relies on them.

from rfcs.

DingoEatingFuzz avatar DingoEatingFuzz commented on May 15, 2024

We also use ObjectProxy and ArrayProxy with the PromiseProxyMixin in places where ED doesn't make sense.

Our PromiseArray is as simple as

import Ember from 'ember';

export default Ember.ArrayProxy.extend(Ember.PromiseProxyMixin);

from rfcs.

pixelhandler avatar pixelhandler commented on May 15, 2024

Wait, I see some changes already:

So ObjectProxy is already public, nice.

Just need ArrayProxy to be public as well

from rfcs.

mmun avatar mmun commented on May 15, 2024

One caveat with ObjectProxy is that it is not compatible with removing Ember.get in favor of ES5 getters.

from rfcs.

mixonic avatar mixonic commented on May 15, 2024

@pixelhandler I've merged emberjs/ember.js#11970, should this be closed then or are there additional parts to discuss?

from rfcs.

pixelhandler avatar pixelhandler commented on May 15, 2024

@mixonic awesome thank you sir! all set, closing this up 👍

from rfcs.

pixelhandler avatar pixelhandler commented on May 15, 2024

@mixonic @mmun is that why http://emberjs.com/api/classes/Ember.ObjectProxy.html is Private and http://emberjs.com/api/classes/Ember.ArrayProxy.html Public (I use these alot with http://emberjs.com/api/classes/Ember.PromiseProxyMixin.html which is also Public)

from rfcs.

rwjblue avatar rwjblue commented on May 15, 2024

@pixelhandler - Ember.ObjectProxy is marked as @public (see here on master). The API docs you linked to are for 2.0.1 which are somewhat behind.

from rfcs.

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.