Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Action dispatcher breaking #237

Merged
merged 1 commit into from
Feb 17, 2017
Merged

Conversation

christophehurpeau
Copy link
Contributor

No description provided.

API.md Outdated
The actionDispatcher is passed the node http request object, the dispatch function, and getState
as parameters. It's expected to return something that can be yield (Promise, Generator, etc..) or nothing. If it returns a yieldable, then the server will wait for its completion before continuing.
Path to a file exporting an createInitAction. Useful for populating the store on the server before rendering.
The createInitAction is passed the node http request object as parameter.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Koa2 request object is passed as a parameter to createInitiAction

API.md Outdated
as parameters. It's expected to return something that can be yield (Promise, Generator, etc..) or nothing. If it returns a yieldable, then the server will wait for its completion before continuing.
Path to a file exporting an createInitAction. Useful for populating the store on the server before rendering.
The createInitAction is passed the node http request object as parameter.
It's expected to return an action or nothing. The action can be a thunk.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It must return and action or nothing

@christophehurpeau christophehurpeau force-pushed the action-dispatcher-breaking branch 2 times, most recently from d47b194 to 7062b3a Compare February 17, 2017 16:42
…turned result of server.createInitAction

BREAKING: you must use createInitAction instead of actionDispatcher
@christophehurpeau christophehurpeau force-pushed the action-dispatcher-breaking branch from 7062b3a to fb121a3 Compare February 17, 2017 16:43
@christophehurpeau christophehurpeau merged commit 5cf9628 into master Feb 17, 2017
@christophehurpeau christophehurpeau deleted the action-dispatcher-breaking branch February 17, 2017 16:56
@christophehurpeau christophehurpeau modified the milestone: 1.0 Feb 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants