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

docs: redirect action factory missed in readme #88

Open
maxfrigge opened this issue Apr 25, 2016 · 3 comments
Open

docs: redirect action factory missed in readme #88

maxfrigge opened this issue Apr 25, 2016 · 3 comments

Comments

@maxfrigge
Copy link

Would be cool to have a redirect action that would allow doing things like:

import redirect from 'cerebral-module-router/redirect'

const appMounted = [
  redirect('/')
]

The factory I currently use for this looks like this:

export default function redirect (route) {
  function action ({services}) {
    services.router.redirect(route)
  }

  action.displayName = `redirect(${route})`

  return action
}
@christianalfoni
Copy link
Collaborator

import {redirect} from 'cerebral-module-router';

Its already there :)

@maxfrigge
Copy link
Author

Thanks mate! Missing in the docs though :)

@christianalfoni
Copy link
Collaborator

We have lots of docs work to do, for sure! Hm... we are planning to launch a meetup the Vienna weekend. MAybe we could launch it as: "Cerebral focus group". So that we get people in there to try out Cerebral and we collect all feedback in regards of questions etc. So that we get the feedback of beginners

@Guria Guria reopened this Apr 25, 2016
@Guria Guria changed the title Add a redirect action factory that can be composed in signals [docs]: redirect action factory missed in readme Apr 25, 2016
@Guria Guria changed the title [docs]: redirect action factory missed in readme docs: redirect action factory missed in readme Jun 21, 2016
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

3 participants