download / redux-apis Goto Github PK
View Code? Open in Web Editor NEWHelpers for creating Redux-aware APIs.
License: Creative Commons Attribution 4.0 International
Helpers for creating Redux-aware APIs.
License: Creative Commons Attribution 4.0 International
The only occurrence of using apiLink
is in the course that a custom link-er wasn't provided to link
. Therefore, we should avoid using the this
reference as it convolutes the meaning, and evidently is only used on the child object.
I'll submit a pull request after verifying all tests still work.
Branch | Build failing π¨ |
---|---|
Dependency | mocha |
Current Version | 3.3.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As mocha is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
Mocha is now moving to a quicker release schedule: when non-breaking changes are merged, a release should happen that week.
This week's highlights:
allowUncaught
added to commandline as --allow-uncaught
(and bugfixed)--no-warnings
and --trace-warnings
flags (@sonicdoe)The new version differs by 9 commits0.
7554b31
Add Changelog for v3.4.0
9f7f7ed
Add --trace-warnings
flag
92561c8
Add --no-warnings
flag
ceee976
lint test/integration/fixtures/simple-reporter.js
dcfc094
Revert "use semistandard
directly"
93392dd
no special case for macOS running Karma locally
4d1d91d
--allow-uncaught cli option
fb1e083
fix allowUncaught in browser
4ed3fc5
Add license report and scan status
false
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
Happens with nested API's in @@redux/INIT phase
Branch | Build failing π¨ |
---|---|
Dependency | babel-loader |
Current Version | 6.4.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As babel-loader is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
We should be able to get the handler currently attached to an action, so we can use it from our extending class.
E.g. we want to be able to do this:
class Base extends Api {
constructor(state) {
super(state);
this.setHandler('SOME_ACTION', (state, action) => ({ ...state, someProp:action.payload }));
}
}
class Derived extends Base {
constructor(state) {
super(state);
const oldHandler = this.getHandler('SOME_ACTION');
this.setHandler('SOME_ACTION', (state, action) => {
const newState = oldHandler(state, action);
return { ...newState, extraProp:'extra thingie' }});
}
}
In the .getState()
function, there's a call to this.__link(this.__parent.getState())
- likewise, in link()
's default definition, if child
isn't defined (like in the call earlier), yet the parent object will be an object and the this
parameter is still bound to the child, which does have the .__parent
parameter, which then takes this code path.
Because we're only supplying the parent's .__state
property to the child's .__link()
, it would expect it's name to exist in the state of the parent.
How should this work / how should I be doing this?
Using the actual nested Api objects in the object returned by connector
means their identity never changes, which does not work well with React's default implementation of performing a strict equals check on the props passed to a component. We need that identity to change with state changes/
Happens on older versions of Node JS / Older browsers if we don't use a polyfill. Add a polyfill for when running tests on Travis CI as build is currently failing due to this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.