Giter VIP home page Giter VIP logo

Comments (5)

yankodimitrov avatar yankodimitrov commented on June 23, 2024

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.

d6u avatar d6u commented on June 23, 2024

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.

yankodimitrov avatar yankodimitrov commented on June 23, 2024

Sure, flatMap will be a great addition.

from signalkit.

jpmhouston avatar jpmhouston commented on June 23, 2024

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.

yankodimitrov avatar yankodimitrov commented on June 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.