Skip to content

Commit a350c2c

Browse files
committed
Move added checkEquals option into options argument
1 parent dcec466 commit a350c2c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/lib/createContainer.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ module.exports = function (Component, options) {
9292
this.props.onQuery.call(this, Promise.resolve({}));
9393
}
9494
},
95-
setQueryParams: function (nextParams, optionalQueryNames, checkEquals) {
95+
setQueryParams: function (nextParams, optionalQueryNames, options) {
9696
var _this = this;
97+
options = arguments[2] || {};
9798

9899
var promise = new Promise(function (resolve, reject) {
99100
var props = _this.props || {};
@@ -103,7 +104,7 @@ module.exports = function (Component, options) {
103104

104105
assign(allNextParams, _this.currentParams, nextParams)
105106
paramsEquals = shallowEqual(allNextParams, _this.currentParams)
106-
if (checkEquals && paramsEquals && _this.hasQueryResults()) return
107+
if (options.checkEquals && paramsEquals && _this.hasQueryResults()) return
107108

108109
assign(_this.currentParams, nextParams);
109110
promise = Container.getAllQueries(_this.currentParams, optionalQueryNames);

0 commit comments

Comments
 (0)