Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Commit

Permalink
fix: remove effect duplication warning
Browse files Browse the repository at this point in the history
  • Loading branch information
RiadhAdrani committed Nov 8, 2022
1 parent 8f5679f commit fa40661
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@riadh-adrani/recursive",
"version": "0.7.58",
"version": "0.7.59",
"description": "Recursive is a Javascript framework to build beautiful component-based apps.",
"license": "MIT",
"main": "index.js",
Expand Down Expand Up @@ -29,6 +29,6 @@
"jest": "^28.1.3"
},
"dependencies": {
"@riadh-adrani/utility-js": "^0.14.0"
"@riadh-adrani/utility-js": "^0.20.1"
}
}
8 changes: 4 additions & 4 deletions packages/state/effect/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ const effectStore = (store) => {
const old = store.getItem(key, storeName);

if (store.itemIsUsed(storeName, key)) {
RecursiveConsole.warn("Recursive State : Duplicate effect detected.", [
"You are using an effect twice in your tree, which is forbidden.",
"Try changing the keys of the effects to be unique or merge them into a single effect.",
]);
// RecursiveConsole.warn("Recursive State : Duplicate effect detected.", [
// "You are using an effect twice in your tree, which is forbidden.",
// "Try changing the keys of the effects to be unique or merge them into a single effect.",
// ]);

return;
}
Expand Down

0 comments on commit fa40661

Please sign in to comment.