@exodus/atoms
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -6,2 +6,8 @@ # Change Log | ||
## [6.0.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/atoms@6.0.0...@exodus/atoms@6.0.1) (2023-10-25) | ||
### Bug Fixes | ||
- **atom:** valueEmittedFromGet is not cleared in the observe ([#4566](https://github.com/ExodusMovement/exodus-hydra/issues/4566)) ([e1eb8a0](https://github.com/ExodusMovement/exodus-hydra/commit/e1eb8a0e690614c154c48cfed5dc5471eb06400a)) | ||
## [6.0.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/atoms@5.7.3...@exodus/atoms@6.0.0) (2023-10-21) | ||
@@ -8,0 +14,0 @@ |
@@ -34,5 +34,8 @@ import makeConcurrent from 'make-concurrent'; | ||
return atom.observe((value) => { | ||
if (valueEmittedFromGet && value === valueEmittedFromGet) { | ||
if (valueEmittedFromGet) { | ||
const isAlreadyEmitted = value === valueEmittedFromGet; | ||
valueEmittedFromGet = undefined; | ||
return; | ||
if (isAlreadyEmitted) { | ||
return; | ||
} | ||
} | ||
@@ -39,0 +42,0 @@ return publishSerially(postProcessValue(value)); |
{ | ||
"name": "@exodus/atoms", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"main": "lib/index.js", | ||
@@ -46,3 +46,3 @@ "description": "Abstraction for encapsulating a piece of data behind a simple unified interface: get, set, observe", | ||
}, | ||
"gitHead": "127d91779b91ad17cb1dadbfccb7eb7559ecbf23" | ||
"gitHead": "7ed0324ad76734e8bd9fddaa9da79ca1e44ad809" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
55967
935
0