Skip to content

Idea: implement clojure reactive support using missionary #1

@dvingo

Description

@dvingo

The code works in clojure without the reactive part. It would be interesting to also have subscriptions work in clojure.

example use-case: listening to a transaction log for a db -> run through subscription chain on the server -> websocket -> subscription chain on the client.

For implementation, I think https://github.com/leonoel/missionary could work. The idea is to make

(defn run-in-reaction [f obj key run opts] (f))
run-in-reaction and make-reaction work on clojure.

I suppose you could also just try a faithful port of the reagent.ratom namespace (and support namespaces) into clojure but figured missionary would be the simpler route of those options.

Another interesting/crazy idea is to use missionary on the client as well instead of reagent but maintain the use-sub user-level API - just swapping implementations.

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