by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 25 13:55

    Olical on npm_and_yarn

    (compare)

  • May 25 13:55
    dependabot[bot] commented #155
  • May 25 13:55
    Olical closed #155
  • Jan 19 01:50
    kubenstein commented #154
  • Jan 18 12:08
    dependabot[bot] labeled #155
  • Jan 18 12:08
    dependabot[bot] opened #155
  • Jan 18 12:08

    dependabot[bot] on npm_and_yarn

    Bump marked from 0.3.6 to 0.8.0… (compare)

  • Jan 18 12:08

    Olical on master

    5.2.9 Bump version (compare)

  • Jan 18 12:04

    Olical on master

    fix type definition of emitEven… Merge pull request #154 from ku… (compare)

  • Jan 18 12:04
    Olical closed #154
  • Jan 18 12:03
    Olical commented #154
  • Jan 18 06:28
    kubenstein opened #154
  • Sep 07 2019 18:40

    Olical on v5.2.8

    (compare)

  • Sep 07 2019 18:40

    Olical on master

    Bump to v5.2.8 (compare)

  • Sep 07 2019 18:34
    Olical commented #153
  • Sep 07 2019 18:34

    Olical on master

    Fixes invalid token on TS defin… Merge pull request #153 from ra… (compare)

  • Sep 07 2019 18:34
    Olical closed #153
  • Sep 07 2019 17:55
    rafaeltavares commented #153
  • Sep 07 2019 08:53
    Olical commented #153
  • Sep 07 2019 01:53
    rafaeltavares opened #153
Morgan Yarbrough
@sevin7676
What are the pros and cons of EventEmitter vs EventEmitter2 (https://github.com/asyncly/EventEmitter2) ?
Oliver Caldwell
@Olical
Sorry, I've only just seen your question! I didn't get a notification for some reason.
I guess it's just personal preference really, they both solve the same problems. Mine tends to lean towards the node.js implementation whereas EE2 seems to take it's own spin. It looks pretty good but I personally would have no need for namespaces, for example. Others might. When I need events I need some pub/sub-ish code that I can extend or compose as a property within my objects.
There's various performance tests on jsPerf which all show varying results. Most EE implementations are fast, but I wouldn't base your selection on that, go for what API suits you best.
Looking now though, EE2 has a lot of outstanding issues. EE has 0 and I try to keep it that way. It's fairly simple and well tested so there's not an awful lot that can go wrong.
(All in reply to @sevin7676 :))
Morgan Yarbrough
@sevin7676
Thankyou!
David Siah
@dsiah
why would one use eventEmitter in Node as opposed to using the native library?
Nate-Wilkins
@Nate-Wilkins
There is no native EventEmitter? Are you talking about in the browser or Node?
Oliver Caldwell
@Olical
If you're using node, by all means require('events'). I guess this is just an option, I have no idea what the performance is like in comparison. The API is slightly different and maybe you'd prefer to use the same across client and server.
Adam Rogas
@adamrogas
Do you know of anyone using EventEmitter as the basis for a FB flux style store ? https://github.com/facebook/flux
Oliver Caldwell
@Olical
I'm sure it'd work fine :)
I need to fix my notifications, I have to periodically check here for new messages, gitter won't send me any emails for some reason.
ROne
@ravi-mone
Hello Team,
I am new to reactJS, but have worked a bit in angularJS
And when I was going through react, I got an EventEmitter example,
Is the EventEmitter is a javascript concept or reactJs has its own eventemitter
Oliver Caldwell
@Olical
@ravi-mone Sorry about the slow reply, I was on holiday at the time, but the example you're referring to may be using the node.js EventEmitter? It's impossible to say without seeing it myself.
Pranay Prakash
@pranaygp
@adamrogas you can definitely use EventEmitter for a Flux style store, however, I would recommend against it
It's better to simply store a list of callbacks, and iterate through the list when the store changes and call all those functions
I say this for 2 reasons : it's lighter if you do it that way and you learn more by Implementing it yourself
The event emitter model is a simple one that
Is essential to understand before diving into advanced JS
Richeve S. Bebedor
@volkovasystems
@Olical I've sent a pull request, please review if applicable meanwhile I'll try to find alternative to bypass my issue. Else please reconsider my pull request thanks!