@exodus/atoms 5.7.3-hotfix.0 → 5.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/atoms",
3
- "version": "5.7.3-hotfix.0",
3
+ "version": "5.7.3",
4
4
  "main": "src/index.js",
5
5
  "description": "Abstraction for encapsulating a piece of data behind a simple unified interface: get, set, observe",
6
6
  "author": "Exodus Movement Inc.",
@@ -36,5 +36,6 @@
36
36
  "delay": "^5.0.0",
37
37
  "eslint": "^8.44.0",
38
38
  "jest": "^29.1.2"
39
- }
40
- }
39
+ },
40
+ "gitHead": "18791c72d9be2a75aea6621a216c1aed819442ca"
41
+ }
@@ -43,12 +43,9 @@ const enforceObservableRules = ({ defaultValue, getInitialized = () => true, log
43
43
  }
44
44
  })
45
45
  return atom.observe((value) => {
46
- if (valueEmittedFromGet) {
47
- const isAlreadyEmitted = value === valueEmittedFromGet
46
+ if (valueEmittedFromGet && value === valueEmittedFromGet) {
48
47
  valueEmittedFromGet = undefined // ignore changes from observe only for first call
49
- if (isAlreadyEmitted) {
50
- return
51
- }
48
+ return
52
49
  }
53
50
 
54
51
  return publishSerially(postProcessValue(value))