-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from simpleweb/reducer-improvements
Reducer improvements
- Loading branch information
Showing
4 changed files
with
29 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// @flow | ||
export const APP_INSTALLED = '<%= name %>/APP_INSTALLED'; | ||
|
||
export const appInstalled = () => ({ | ||
export type AppInstalled = { | ||
type: '<%= name %>/APP_INSTALLED', | ||
}; | ||
|
||
export const appInstalled = (): AppInstalled => ({ | ||
type: APP_INSTALLED, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// @flow | ||
export const <%= reducerConst %>_EXAMPLE = '<%= name %>/<%= reducerConst %>_EXAMPLE'; | ||
export const <%= reducerConst %>_EXAMPLE = "<%= name %>/<%= reducerConst %>_EXAMPLE"; | ||
|
||
export const <%= reducerSlug %>Example = () => ({ | ||
export type <%= reducer %>Example = { | ||
type: "<%= name %>/<%= reducerConst %>_EXAMPLE", | ||
}; | ||
|
||
export const <%= reducerSlug %>Example = ():<%= reducer %>Example => ({ | ||
type: <%= reducerConst %>_EXAMPLE, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters