Skip to content
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.

Is map correct? #4

Open
SimonRichardson opened this issue Aug 11, 2015 · 1 comment
Open

Is map correct? #4

SimonRichardson opened this issue Aug 11, 2015 · 1 comment

Comments

@SimonRichardson
Copy link
Member

@puffnfresh would you expect the following be correct?

    var x = {a:{x:1}};
    Lens.objectLens('a').andThen(Lens.objectLens('x')).run(x).map(function(o) {
        console.log(o); // Expect {x:1}, Received {a:{x:1}}
        return o;
    }).extract();
@puffnfresh
Copy link
Member

Looks very broken! 👻

SimonRichardson added a commit to SimonRichardson/fantasy-stores that referenced this issue Aug 19, 2015
This also fixes the issue around
fantasyland/fantasy-lenses#4 where map doesn't
correctly map the right store.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants