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

Subscriber optional context #10

Closed
cdomigan opened this issue Nov 7, 2016 · 1 comment
Closed

Subscriber optional context #10

cdomigan opened this issue Nov 7, 2016 · 1 comment

Comments

@cdomigan
Copy link

cdomigan commented Nov 7, 2016

Thanks for this library.

I'm wanting to use Subscriber, but in a place where the context (broadcast) is not always set. In this case I would like to use either a default prop, or simply undefined.

Currently I can't do this, and I get this error:
browser.js:40 Uncaught Error: <Subscriber channel="filterStore"> must be rendered in the context of a <Broadcast channel="filterStore">

@mjackson
Copy link
Member

mjackson commented Nov 7, 2016

You can do this right now. In 57de4ff we made context.broadcasts optional, so you're probably just using an older version of the library.

@mjackson mjackson closed this as completed Nov 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants