@erickmerchant/framework
Advanced tools
Comparing version 7.8.1 to 8.0.0
@@ -28,3 +28,3 @@ 'use strict'; | ||
return function (init) { | ||
init({ state: state, dispatch: dispatch }); | ||
init(dispatch); | ||
}; | ||
@@ -31,0 +31,0 @@ |
@@ -20,3 +20,3 @@ const catchLinks = require('catch-links') | ||
return function (init) { | ||
init({state, dispatch}) | ||
init(dispatch) | ||
} | ||
@@ -23,0 +23,0 @@ |
{ | ||
"name": "@erickmerchant/framework", | ||
"version": "7.8.1", | ||
"version": "8.0.0", | ||
"description": "A simple data down, actions up framework.", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
@@ -11,2 +11,3 @@ # @erickmerchant/framework | ||
## An Example | ||
@@ -56,2 +57,3 @@ | ||
## API Reference | ||
@@ -128,7 +130,7 @@ | ||
Returns the [component callback](#component-callback) | ||
Returns the [component result](#component-result) | ||
#### component callback | ||
#### component result | ||
_callback({state, dispatch, show, next})_ | ||
_result({state, dispatch, show, next})_ | ||
@@ -147,11 +149,11 @@ - state: see [state](#state) | ||
- target: the target passed to [framework](#framework) | ||
- element: the new element returned from the [component callback](#component-callback) | ||
- element: the new element returned from the [component result](#component-result) | ||
#### init callback | ||
_callback({state, dispatch})_ | ||
_callback(dispatch)_ | ||
- state: see [state](#state) | ||
- dispatch: see [dispatch](#dispatch) | ||
## Related Projects | ||
@@ -158,0 +160,0 @@ |
@@ -39,4 +39,4 @@ const test = require('tape') | ||
raf: noop | ||
})(function (app) { | ||
t.deepEqual(Object.keys(app), ['state', 'dispatch']) | ||
})(function (dispatch) { | ||
t.ok(typeof dispatch, 'function') | ||
}) | ||
@@ -43,0 +43,0 @@ |
168
11412