This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//views/SomeComponent/index.js | |
import React from "react"; | |
import { connect } from "react-redux"; | |
import { compose } from "redux"; | |
import reducer, { reducerName as key } from "./reducer"; | |
// import reducerRegistry from "utils/reducerRegistry"; | |
import reducerInjector from "utils/reducerInjector"; | |
function SomeComponent() { | |
const classes = useStyles(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This code is licensed under the terms of the MIT license | |
* | |
* Deep diff between two object, using lodash | |
* @param {Object} object Object compared | |
* @param {Object} base Object to compare with | |
* @return {Object} Return a new object who represent the diff | |
*/ | |
function difference(object, base) { | |
function changes(object, base) { |