Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 03:58

    greenkeeper[bot] on @octokit

    (compare)

  • 03:57

    greenkeeper[bot] on @octokit

    chore(package): update @octokit… (compare)

  • Sep 20 21:04
    m-mujica commented #5303
  • Sep 20 20:23
    m-mujica opened #5303
  • Sep 20 20:23

    m-mujica on upgrade-deps

    Update can-type and can-stache-… (compare)

  • Sep 20 20:05
    m-mujica edited #5302
  • Sep 20 20:03
    m-mujica synchronize #5302
  • Sep 20 20:03

    m-mujica on upgrade

    Upgrade routing guide to Can 6 Fix incorrect highlight Use svg images (instead of .png) (compare)

  • Sep 20 19:32
    m-mujica opened #5302
  • Sep 20 19:29

    m-mujica on upgrade

    Upgrade routing guide to Can 6 Fix incorrect highlight (compare)

  • Sep 20 17:42

    m-mujica on upgrade

    WIP: Upgrade (compare)

  • Sep 20 17:06
    do-adams starred canjs/canjs
  • Sep 20 13:34

    chasenlehara on 5119-testing-guide

    Update the Testing guide for Ca… (compare)

  • Sep 20 13:21
    cherifGsoul commented #5295
  • Sep 20 13:18
    cherifGsoul synchronize #5295
  • Sep 20 13:18

    cherifGsoul on update-theme-new-buttons

    Theme pre-release 2 (compare)

  • Sep 20 10:29

    greenkeeper[bot] on socket.io-client-2.3.0

    (compare)

  • Sep 20 10:26

    greenkeeper[bot] on socket.io-client-2.3.0

    chore(package): update socket.i… (compare)

  • Sep 20 06:40
    HellMagic starred canjs/canjs
  • Sep 19 20:42
    m-mujica commented #5119
Thomas Sieverding
@Bajix
Yes
Justin Meyer
@justinbmeyer
this is a perfect opportunity for a behavior
Thomas Sieverding
@Bajix
Oh?
Justin Meyer
@justinbmeyer
like .. this is exactly the scenario can-connect was built to handle
Thomas Sieverding
@Bajix
I know ;p
Justin Meyer
@justinbmeyer
well built to be ABLE to handle
doesn't handle it
Thomas Sieverding
@Bajix
Though I don’t see why data-websocket would be a behavior
Justin Meyer
@justinbmeyer
you query the websocket once it's connected for the new things right?
Thomas Sieverding
@Bajix
Nope
Though I suppose I could do it that way
Justin Meyer
@justinbmeyer
when / how do you query the new things?
Thomas Sieverding
@Bajix
I would query things using findAll after my websocket connection is online
Justin Meyer
@justinbmeyer
oh ... I would fire getList and forget
Thomas Sieverding
@Bajix
Then I’d use something like hydrateInstance to handling incoming data from my websocket connection
Justin Meyer
@justinbmeyer
ok, so I'm not sure how all this works ... but let me take a stab at some sudo code
Thomas Sieverding
@Bajix
Sure
onData: function( packet ) {
  var action = packet[0],
    data = packet[2];

  switch (action) {
    case 'DELETE channel':
      return Channel.model(data).destroyed();
    case 'DELETE message':
      return Message.model(data).destroyed();
    case 'DELETE user':
      return User.model(data).destroyed();
    case 'channel':
      return this.dispatch('channel', [Channel.model(data)]);
    case 'message':
      return this.dispatch('message', [Message.model(data)]);
    case 'user':
      return this.dispatch('user', [User.model(data)]);
  }
},
This is an example of a similar use-case to what I’m building now
      '{scope} onlineAt': function( scope, ev, onlineAt ) {
        var channel = scope.attr('channel');

        if (onlineAt) {
          Message.findAll({
            channel: channel._id,
            limit: channel.config.loadMessageCount
          });

          User.findAll({
            channel: channel._id,
            limit: config.chat.loadMessageCount
          });
        }
      },
So onlineAt would be the time my connection goes online
This was pre can-connect
My models were setup to emit newInstance on prototype.init on their constructor
I was combining the two data sets manually
Christopher Oliphant
@RALifeCoach
back to steal-tools - I have in my package.son
  "system": {
    "main": "modules/page.players-redesign/player-bio/components/player-bio.js"
  },
/git/pgatour-cq-v2/front-end/node_modules/steal-tools/lib/graph/make_graph_with_bundles.js:83
    if( Array.isArray(cfg.main) ) {
                         ^

TypeError: Cannot read property 'main' of undefined
    at module.exports (/git/pgatour-cq-v2/front-end/node_modules/steal-tools/lib/graph/make_graph_with_bundles.js:83:23)
Leath Cooper
@IcculusC
not in system
it's a top level package.json field
Thomas Sieverding
@Bajix
@IcculusC It’s in both
Leath Cooper
@IcculusC
oh
Thomas Sieverding
@Bajix
He should be doing this in system.main
the top level main is a fallback
Leath Cooper
@IcculusC
weird, in my experience it only works under the top level package.json object
Christopher Oliphant
@RALifeCoach
I removed it from the system object and I am getting the same result
This message was deleted
Leath Cooper
@IcculusC
well I learned something just now
Thomas Sieverding
@Bajix
@RALifeCoach Your paths are likely the issue
Christopher Oliphant
@RALifeCoach
how so?
Thomas Sieverding
@Bajix
What’s your package.json name & system.directories
Christopher Oliphant
@RALifeCoach
my package is package.json and it’s in the same folder as build.js
not sure what you mean by system.directories
Thomas Sieverding
@Bajix
Do you have a src folder
Or are you using a different naming convention?
Christopher Oliphant
@RALifeCoach
a different naming convention - legacy code
Thomas Sieverding
@Bajix
What’s your main asset directory
Leath Cooper
@IcculusC
@matthewp @justinbmeyer is it okay for me to close my issue referring to the expr.hash bug you fixed with the most recent release of can-stache-bindings
Justin Meyer
@justinbmeyer
yeah
Christopher Oliphant
@RALifeCoach
modules
Justin Meyer
@justinbmeyer
@Bajix that is very rough, but check it out. Maybe lets move this convo to the forums.
Christopher Oliphant
@RALifeCoach
modules has many sub directories - none of which use CanJS