Skip to content
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

Resubscribing throwing error #152

Open
arashb31 opened this issue Apr 25, 2016 · 1 comment
Open

Resubscribing throwing error #152

arashb31 opened this issue Apr 25, 2016 · 1 comment

Comments

@arashb31
Copy link

arashb31 commented Apr 25, 2016

I'm using postal.js and sometimes when I subscribe to a channel, I receive an error that looks like this:

For example, if I do something like

postal.channel().subscribe('homefeed', alert)

I get

"Cannot read property '/|homefeed' of undefined"

Stack trace below:
at http://localhost:8080/libs/postal.js:8:730 at http://localhost:8080/libs/postal.js:8:7297 at u (http://localhost:8080/libs/lodash.min.js:6:412) at Function.se (http://localhost:8080/libs/lodash.min.js:52:212) at Object.e.extend.subscribe (http://localhost:8080/libs/postal.js:8:7187) at p.subscribe (http://localhost:8080/libs/postal.js:8:1471)

This seem to happen when I subscribe, and then unsubscribe, and then re-subscribe to the same topic.

@ifandelse
Copy link
Contributor

@arashb31 I apologize for the delay in responding. I've not been able to reproduce the issue. Do you have a gist, jsfiddle or something that consistently shows this happening? Also - what version of postal and lodash were you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants