Skip to content

Question: Example of how to set a leaf node in an freactive cursor using swap! or reset! ? #55

@nottoseethesun

Description

@nottoseethesun

Currently I run into No protocol method ISwap.-swap! defined for type boolean: true:

https://github.com/christopherbalz/vibrashank/blob/rerender-on-cursor-change/src/cljs/vibrashank/views.cljs#L62

The initial cursor is here:

https://github.com/christopherbalz/vibrashank/blob/rerender-on-cursor-change/src/cljs/vibrashank/core.cljs#L34

I do not see how to apply the examples on the Cursor section of the README to this common case.

What is an example of how to set a leaf node (say, that is a boolean) located greater than one level deep in a nested freactive cursor?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions