Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:27
    greenkeeper[bot] labeled #5428
  • 17:27
    greenkeeper[bot] opened #5428
  • 17:27

    greenkeeper[bot] on can-observable-array-1.0.5

    fix(package): update can-observ… (compare)

  • 16:49
    cherifGsoul opened #5427
  • 16:39

    cherifGsoul on obserbale-properties-update-debugging-guid

    (compare)

  • 16:39

    cherifGsoul on master

    Remove ViewModel wording from d… Fix observable properties wordi… Fix typo and 2 more (compare)

  • 16:39
    cherifGsoul closed #5425
  • 16:29
    cherifGsoul synchronize #5425
  • 16:29

    cherifGsoul on obserbale-properties-update-debugging-guid

    Fix another typo (compare)

  • 15:25
    cherifGsoul synchronize #5425
  • 15:25

    cherifGsoul on obserbale-properties-update-debugging-guid

    Fix typo (compare)

  • 10:20
    greenkeeper[bot] labeled #5426
  • 10:20
    greenkeeper[bot] opened #5426
  • 10:19

    greenkeeper[bot] on can-attribute-observable-2.0.2

    fix(package): update can-attrib… (compare)

  • Nov 18 21:05

    nlundquist on master

    Update dist for release (compare)

  • Nov 18 21:05

    nlundquist on v6.2.6

    Update dist for release 6.2.6 (compare)

  • Nov 18 20:22
    cherifGsoul review_requested #5425
  • Nov 18 20:22
    cherifGsoul commented #5425
  • Nov 18 20:19
    cherifGsoul synchronize #5425
  • Nov 18 20:19

    cherifGsoul on obserbale-properties-update-debugging-guid

    Fix observable properties wordi… (compare)

Kevin Phillips
@phillipskevin
and you can look at the superMap code for the behaviors it is using: https://github.com/canjs/can-connect/blob/master/can/super-map/super-map.js#L22-L48
deepasrikanth
@deepasrikanth
ok thanks. I will check that out. If I have questions I will come back. Thanks again!
Kevin Phillips
@phillipskevin
sure, no problem!
Morgan Heimbeck
@Xitstrategies
in can v2 with a view.attr how do I properly get the attrData.scope._context? I can't do attrData.scope.attr(), etc.
deepasrikanth
@deepasrikanth
Hi Kevin another question.. the problem I am facing that my view is not hitting the API to show the latest data. But if I visit the page again or refresh it works. So I was trying to find a way to disable caching. Hence my previous question. Is there any other way to refresh the view to show the latest instead of clearing cache?
Kevin Phillips
@phillipskevin
maybe that’s not a caching issue
even with the fall-through cache, it will still make the request to the API
it will just give the cached data, then make the request to the API and update the response
what change is happening that should trigger the new request?
deepasrikanth
@deepasrikanth
so I have a form in a view where I am creating a row of data.. another view should list all the rows of data
now on one tab I save new data and another tab I try to visit the list page and I don't see the new data. The API request does not show the new data as well. but If I go back by browser back or another way and come back to the list page... the api request shows new data. So I doubted the caching.
Kevin Phillips
@phillipskevin
hmm, ok
it’s hard to say what’s happening
any way you can try to reproduce it in a jsbin?
deepasrikanth
@deepasrikanth
I can try. I have not used it so far.
Kevin Phillips
@phillipskevin
there is a link at the top of gitter that you can use to get started
deepasrikanth
@deepasrikanth
So this code works if I use fixtures.. but this problem happens when I really hit the APIs that talk to my local mongo
If I copy the code in jsBin you won't be able to see the problem by running it but you can see the code I guess
Morgan Heimbeck
@Xitstrategies
try doing this in your ViewModel instead of in the init
"eventGroups": {
    get: function() {
      return EventGroup.getList({});
    }
  },
deepasrikanth
@deepasrikanth
will try that. I just tried this in my model definition "cacheConnection": "real-time",
seems to be working. is that a valid configuration?
deepasrikanth
@deepasrikanth
never mind my last question
deepasrikanth
@deepasrikanth
Thank you guys. changing super map to base map worked.
Gira Minus
@gKreator
@phillipskevin Thanks I figured it out that night I forgot to mention it.
Is there any good way to prompt somebody to save a form as they are trying to navigate away? Let's say they filled out a form and forgot to save. Is there a decent way to prevent route change or force them back or something?
I know if they close the web browser you can do the js onbeforeunload event
Frank Lemanschik
@frank-dspeed
@gKreator you can let the on route change event block if form is filled partial
i don't remember exactly where it is as i don't use routing from canJs any more
i found out via benchmarks that my server side handels packaging and caching and all that more efficent so i only use viewModel + component
https://v2.canjs.com/docs/can.route.html#section_Changingtheroute_ here if your using v2 read using route with can.control
here search for listen to event changes
if your using v3
:d
i made animated gifs from donejs meetings ;)
this are my both favorit chason lauthing and justin saying every thing is possible :)
Matthew Phillips
@matthewp
:smile:
Justin Meyer
@justinbmeyer
haha
Chasen Le Hara
@chasenlehara
lol
Frank Lemanschik
@frank-dspeed
I tought its a EPIC :)
its useable for github and that
it could also be used realy informativ to show parts from demos or live talks on youtube but i used it for that
Kyle Gifford
@kylegifford
Is the shorthand for can-component events still around? As in,
'{viewModel} thingThatChanged': 'methodToCall'
and is methodToCall on the viewModel, or a method on the events object?
Kevin Phillips
@phillipskevin
yes, that still works
I think it has to be a method on the events object
it definitely works that way: http://jsbin.com/xahuzeyabi/edit?js,output
yeah, has to be on the events object