Skip to content

Commit

Permalink
chore(version): forgot package.json
Browse files Browse the repository at this point in the history
refactor(counterNest2Nest): inline a function cleaner i think
  • Loading branch information
rluiten committed Jun 24, 2018
1 parent 3aa6d17 commit 8038245
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rajts",
"version": "1.0.1",
"version": "1.0.2",
"private": true,
"license": "MIT",
"prettier": {
Expand Down
10 changes: 4 additions & 6 deletions src/counterNest2Nest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ const counter2: MessageAdapter = data => ({ data, kind: 'counter2' })

const init = counterNest.init

const initCounterNest2NestEffect = (dispatch: Dispatch<IMessage>) => {
dispatchEffect(dispatch, init.effect, counter1)
dispatchEffect(dispatch, init.effect, counter2)
}

const styleBox = {
border: '1px black solid',
margin: '8px',
Expand All @@ -37,7 +32,10 @@ const styleBox = {

const counterNest2Nest: IProgram<IState, IMessage, ReactView> = {
init: {
effect: initCounterNest2NestEffect,
effect: (dispatch: Dispatch<IMessage>) => {
dispatchEffect(dispatch, init.effect, counter1)
dispatchEffect(dispatch, init.effect, counter2)
},
state: {
counter1: init.state,
counter2: init.state
Expand Down

0 comments on commit 8038245

Please sign in to comment.