-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We have to check docs #23
Comments
Is |
Hey @Tjorriemorrie
This should work: import Freezer from 'freezer-js';
var freezer = new Freezer({});
freezer.emit('my:event'); |
Thanks, I was stuck on 0.11 for some reason. This is such a great library. |
I am glad you liked it :) I am preparing a little a article with freezer patterns to celebrate the 1000 stars, keep tuned! |
In fact! Here it is the article draft. If you want to preview and share your thoughts I'll be so grateful: |
It's a good article. Maybe touch on how redux selectors are similarly handled. And also when freezer.on is added to the component, does it create a listener? Meaning do I have to unset the listener/something when the component unmounts (or only specifically when freezer's addListener was used)? |
By selector you mean this? It's great, I had never heard of them and I think it's possible to use them with freezer out of the box. Good appreciation on stop listening events on components that are using |
We have to check if every API method is mentioned in docs.
The text was updated successfully, but these errors were encountered: