@dazn/kopytko-framework 1.0.5 → 1.0.6
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.0.6](https://github.com/getndazn/kopytko-framework/compare/v1.0.5...v1.0.6) (2022-05-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* not calling state update callbacks if kopytko is not mounted ([#27](https://github.com/getndazn/kopytko-framework/issues/27)) ([27d5618](https://github.com/getndazn/kopytko-framework/commit/27d5618909e7fd266db71e88acfa63071b037921))
|
|
7
|
+
|
|
1
8
|
## [1.0.5](https://github.com/getndazn/kopytko-framework/compare/v1.0.4...v1.0.5) (2022-05-19)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -12,6 +12,8 @@ function KopytkoUpdater(baseStateUpdatedCallback as Function)
|
|
|
12
12
|
' when setState is called more than once in a function
|
|
13
13
|
prototype.enqueueStateUpdate = sub (partialState as Object, callback = Invalid as Dynamic)
|
|
14
14
|
m._appendPartialState(partialState)
|
|
15
|
+
if (NOT m._isMounted()) then return
|
|
16
|
+
|
|
15
17
|
if (callback <> Invalid) then m._stateUpdatedCallbacks.push(callback)
|
|
16
18
|
|
|
17
19
|
if (NOT m._isUpdating())
|