daniloster-utils
v1.4.0
Published
Utilities package for react experiments
Downloads
4
Readme
daniloster-utils
Package to provide utilities functions and procedures.
Utilities available
- cancelSwipeNavigation: Cancel browser swipe navigation;
- createReducerFunction: Create reducer function based on map and initial state;
- Create more accessible event handler manipulation such as
document.on('eventNameWitoutOn', handlerFunction)
anddocument.off('eventNameWitoutOn', handlerFunction)
; - Immutable: Create a readonly object but still enumerable;
- invokeRequest: function to perform a request and return the failure as a resolved promise (useful for redux-saga);
- isObjectEmpty: verifies if the provided value is an empty object;
- shouldComponentUpdate: validate if properties are different in 2 objects: currentProps and nextProps;