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

Provide a param observable instead of value #32

Open
Hypnosphi opened this issue Jun 8, 2016 · 1 comment
Open

Provide a param observable instead of value #32

Hypnosphi opened this issue Jun 8, 2016 · 1 comment

Comments

@Hypnosphi
Copy link

Hypnosphi commented Jun 8, 2016

An example from readme:

const routes = {
  '/:id': id => sources => YourComponent({props$: Observable.of({id}), ...sources})
}

Here, whenever the id is changed, a new YourComponent is created. It would be nicer to have something like

const routes = {
  '/:id': param$ => sources => YourComponent({param$, ...sources})
}

Where param$ emits values of form {id}

@TylorS
Copy link
Member

TylorS commented Jun 8, 2016

Yeah this would be cool, but I'm going to be away for a week. Won't be able to do this myself.

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

No branches or pull requests

2 participants