Comments (5)
Hi,
Actually it was the desired effect to dispatch the current value when adding an observer to ObservableValue. Thanks for pointing out the bug!
Just released the v0.1.1
with the bug fix.
Thanks!
from signalkit.
Thanks for the quick fix. Do you accept PR to add other methods, e.g. flatMap?
On Jul 27, 2015, at 3:32 AM, Yanko Dimitrov [email protected] wrote:
Hi,
Actually it was the desired effect to dispatch the current value when adding an observer to ObservableValue. Thanks for pointing out the bug!
Just released the v0.1.1 with the bug fix.
Thanks!
—
Reply to this email directly or view it on GitHub.
from signalkit.
Sure, flatMap will be a great addition.
from signalkit.
Pardon for digging this back up, but even though I dig the most recent rewrite, it looks like this feature of emitting the initial observable value has not survived. This doesn't much affect my code that does observe().next() { myupdatemethod() }
since I can call my method separately during load, however it does impact where I'm currently using 'observe().bindTo(...)
for which there's not an obvious thing to call manually.
This is only from looking at the (now much simpler!) code, I might be wrong. Can you verify this has indeed changed since v3.0?
If this is the case, what's a good approach get this behaviour back: maybe add my own extension SignalType
which adds bindToAndEmitInitialValue
, or use a new SignalEmittingInitialValue
(conforming to SignalType
) instead of Signal
?
from signalkit.
Its functionality moved to SignalValue
which is a signal that holds its most recent value and when you observe it you will receive right away the current value.
I need to find some time to update the library to Swift 3 and perhaps rework some parts.
If you have any suggestions, please open an issue.
:)
from signalkit.
Related Issues (18)
- OS X Support
- Rename `ControlSignal` to `UIControlSignal` HOT 1
- Aliases for `.all({ $0 })` and `.some({ $0 })` HOT 1
- Nested ObservableArray not calling the correct ArrayBindingObserver initialiser in .observe() HOT 2
- Support for `UIBarButtonItem` HOT 1
- KVO doesn't work HOT 6
- Undeclared CollectionChangeSet type in 3.0 release HOT 2
- Add `deinit` and propagated `dispose` method to `DisposableBag` class HOT 1
- and() or() not() for SignalKit.Signal<(A, B, C)> HOT 4
- Swift 3.0 compatibility HOT 8
- NotificationObserverTests.testDisposeOnDeinit() is failed with Swift 3 fork
- The correct way to do an "initial" sendNext to get combineLatestWith to work HOT 3
- how would i create a Timer signal HOT 2
- Swift 2.0 HOT 1
- ObservableArray HOT 1
- UIKit generic type extensions
- Pod doesn't include ObservableType HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from signalkit.