Skip to content

Writable computed out of syncΒ #182

Open
@bennieswart

Description

@bennieswart

Not sure if this is a bug or intended behaviour, but the following occurs in latest versions of both knockout and tko:

o = ko.observable()
c = ko.pureComputed({ read: o, write: o })
c.subscribe(() => o('c'))
c('o')
o() // 'c'
c() // 'o'

I would expect c() === o() always, since c() should always read the value of o().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions