-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(webapp): query in the first load and use it if subscription is no…
…t available
- Loading branch information
1 parent
1a232e7
commit 1199e29
Showing
5 changed files
with
102 additions
and
37 deletions.
There are no files selected for viewing
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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export const isTheSameObject = (obj1, obj2) => { | ||
if (typeof obj1 === 'object' && typeof obj2 === 'object') { | ||
if (Object.keys(obj1 || {}).length !== Object.keys(obj2 || {}).length) | ||
return false | ||
|
||
return Object.keys(obj1 || {}).every((key) => { | ||
return isTheSameObject(obj1[key], obj2[key]) | ||
}) | ||
} | ||
|
||
return obj1 === obj2 | ||
} | ||
|
||
export default isTheSameObject |