This repository has been archived by the owner on May 17, 2019. It is now read-only.
v0.3.0
Changelog
Highlighted Changes
- Update API to be consistent with new version of fusion-plugin-rpc (#9)
Other Changes
- Use Buildkite and Docker for CI (#7)
Migration Guide
Pass in rpc with request key
const handler = createRPCHandler({
store, // required
- rpc: {someMethod() {}, otherMethod() {}},
+ rpc: {request(method, args) => {}},
rpcId, // required
actions: { // optional
start: () => ({type: '', payload: ''})
success: () => ({type: '', payload: ''})
failure: () => ({type: '', payload: ''})
},
mapStateToParams: (state) => {}, // optional
transformParams: (params) => {} // optional
});