Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:07
    matthewp opened #5292
  • 13:06

    matthewp on setupguide

    Current static Update setting up canjs The setting up guide (compare)

  • 07:26

    greenkeeper[bot] on webpack-cli-3.3.9

    (compare)

  • 07:18

    greenkeeper[bot] on webpack-cli-3.3.9

    chore(package): update webpack-… (compare)

  • 04:54
    justinbmeyer commented #5290
  • Sep 16 20:45
    matthewp commented #5291
  • Sep 16 20:44
    matthewp synchronize #5291
  • Sep 16 20:44

    matthewp on type8

    Increase bundlesize for core T… (compare)

  • Sep 16 20:30
    matthewp opened #5291
  • Sep 16 20:29

    matthewp on type8

    Upgrade to can-type 1.0.0-pre.8 (compare)

  • Sep 16 20:23
    phillipskevin labeled #5290
  • Sep 16 20:23
    phillipskevin labeled #5290
  • Sep 16 20:23
    phillipskevin opened #5290
  • Sep 16 19:56

    chasenlehara on major

    Bump can-connect version (compare)

  • Sep 16 18:12
    greenkeeper[bot] labeled #5289
  • Sep 16 18:12
    greenkeeper[bot] opened #5289
  • Sep 16 18:11

    greenkeeper[bot] on can-map-4.3.10

    fix(package): update can-map to… (compare)

  • Sep 16 17:51

    chasenlehara on major

    Update dependencies for 5.33.1 Update dist for release Merge branch 'master' into major (compare)

  • Sep 16 17:34

    chasenlehara on master

    Update dist for release (compare)

  • Sep 16 17:34

    chasenlehara on v5.33.1

    Update dist for release 5.33.1 (compare)

Justin Meyer
@justinbmeyer
btw, if you have objects that you don't need observable, you can define their type like "type": "*"
with the define plugin
those objects will not be converted to Maps / Lists
Christopher Oliphant
@RALifeCoach
When I strip down the big object to be an object that contains only needed properties, there is slight improvement on initial load and a huge improvement on update.
I did make use of type: ‘*’ - that gave some improvement
Justin Meyer
@justinbmeyer
the improvement on update doesn't make sense
I wonder if this is what @Bajix was talking about
are you listening to "change" events?
the number of props shouldn't matter to update
ah ... if you are listening to "change" events ... then @Bajix is also right that additional slowness will be introduced
in the initial render
b/c bubbling will need to be setup
Christopher Oliphant
@RALifeCoach
I don’t have a need to fire events on data changing. The only events would be internal to the UI. (Updating the DOM when a value changed.)
Justin Meyer
@justinbmeyer
not sure what that means ... does that mean no, you are not binding on "change" events?
Christopher Oliphant
@RALifeCoach
no I am not binding change events
Dovid Bleier
@dbleier
@cherifGsoul here is the jsbin http://jsbin.com/hemuliyugu/1/edit?js,console
the 1st time you run will set up the cache
then try making a change to the data in the fixture
you'll notice it console.logs the cached data only
if you run a 3rd time you'll see the updates
Mohamed Cherif Bouchelaghem
@cherifGsoul
ok Im checking
Justin Meyer
@justinbmeyer
@RALifeCoach if you'd like to check if bubbling is getting setup, you can put a debugger here: https://github.com/canjs/canjs/blob/master/map/bubble.js#L42
if that gets hit, something is setting up bubbling
Dovid Bleier
@dbleier
the goal is to get logHellos to fire again after cache is updated
Christopher Oliphant
@RALifeCoach
@justinbmeyer in many ways my code is quite simple. All data is display only. There is some binding against controls, but not against the data itself.
Dovid Bleier
@dbleier
I have to run to a wedding, so I probably won't check back until tomorrow. thanks for the help
Justin Meyer
@justinbmeyer
@RALifeCoach if that's the case, I wouldn't convert it to a Map at all
Christopher Oliphant
@RALifeCoach
Once everything is loaded, the page is quite quick.
the problem is that on initial display the controls are loaded and then updated on all 156 rows
Dovid Bleier
@dbleier
@justinbmeyer what would you use if not a Map? I thought maps were the heart of canjs. My app is also read only and changes are only based on what is received from the server
Christopher Oliphant
@RALifeCoach
Are you suggesting that I pass all data as attributes to the component? There are a lot of attributes!
@justinbmeyer are you still here?
Christopher Oliphant
@RALifeCoach
This is the annoying part - someone makes a statement, I ask for clarification and … silence. This doesn’t happen all the time, but enough that it is annoying.
Mohamed Cherif Bouchelaghem
@cherifGsoul
@RALifeCoach we try to help you everyday
Christopher Oliphant
@RALifeCoach
And you guys have been great - I do not say that often enough. I praise you guys to the folks at work. The level of response to questions from original developers is truly amazing.
Mohamed Cherif Bouchelaghem
@cherifGsoul
We are at our work offices and we took time to help you
Thank you :)
Christopher Oliphant
@RALifeCoach
It’s just the statement, question, silence that’s trying. If you are busy, fine, just let me know.
Mohamed Cherif Bouchelaghem
@cherifGsoul
yes silence means busy
:)
Kevin Phillips
@phillipskevin
He might just mean to pass the raw data to your template
instead of creating a can.Map instance and passing that
Christopher Oliphant
@RALifeCoach
Justin made a statement - I don’t need to use a Map. That’s a significant statement, one that the other user questioned as well. We both asked for more details and I now may wait an hour to a few days to get a response.
Justin Meyer
@justinbmeyer
@RALifeCoach jeez man ... I was literally helping you up to the second I had to leave for a client training
I was late for my car even
sorry for not letting you know
anyway, I'm going to have to start the training now. I will hopefully be available after 7 PM CST, but I might go to dinner
and then talk to my wife / baby
and hopefully after that be available
Christopher Oliphant
@RALifeCoach
@justinbmeyer I do appreciate your help. Now that I know, I will make plans to work on other tasks. When you are free, please fill in the details to your “don’t need a Map” statement. I will check tonight or tomorrow for details. Enjoy your time eating, and spending time with your wife and baby.