Code Monkey home page Code Monkey logo

jsono-model's People

Contributors

wozjac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dfenerski

jsono-model's Issues

Binding to frozen objects throws errors

Hello!

Recently I've discovered that binding to objects, on which Object.freeze was ran did not work, with some weird error about proxies.

I've put together a simple repository to demonstrate this issue here.

A workaround is to import such objects directly as separate modules, but in this case no binding to them is possible.

I find this concept useful, because it also insures runtime immutability, when things get boiled down to plain JS, you can never be to cautious of side effects there.

Please let me know if I am missing something or if anything else is needed.

Any help is appreciated.

BR

Dimitar

Nested proxies cause performance issues

Hi,

I've noticed if you invoke model.arrayProp.sort() it wraps the array objects in a proxy and it continues to do this with each call. If the sort is in a function and it gets called multiple times, the array objects continue to be nested in more and more proxies, which after a couple of calls causes ui5 to completely freeze when accessing them.

Am I doing something wrong? Any help on this is greatly appreciated.

Best regards,

Dimitar

Aggregation binding not working

We found this and decided to take it up for a test because we liked the idea and the implementation seemed neat. However when doing an aggregation binding, ui5 breaks during an attempt to call slice.
image

Changing the makeProxyFor function to this removes the error from the console
image

Am I missing something? Thanks for the support!

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.