forked from can-lehmann/owlkettle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
can-lehmann#115 Improve handling of stateRef changes
Previously the stateRef got the observer unsubscribed and resubscribed every update. That shouldn't happen, we only want to do that when the stateRef actually change. Therefore we now check first for changes in the ref. That uncovered that we need to also do the initial subscription. This is now handled in the build hook for this field.
- Loading branch information
1 parent
988dd29
commit faa291f
Showing
1 changed file
with
32 additions
and
18 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