Coder Social home page Coder Social logo

Comments (6)

roman01la avatar roman01la commented on September 25, 2024

@tkachenko1503 Hi. Thanks! Current architecture doesn't provide core capabilities for integrating development tooling, but you can always hook into state atom with add-watch function. This enables watching state changes over time and building time-traveling debugger, but you can't log actual events. This is temporary solution. I'm considering to work on interceptors as in re-frame, which will allow this kind of tooling. But this is future work.

from citrus.

roman01la avatar roman01la commented on September 25, 2024

I'll drop an example later here

from citrus.

tkachenko1503 avatar tkachenko1503 commented on September 25, 2024

OK! Thanks

from citrus.

roman01la avatar roman01la commented on September 25, 2024

I just published a package with very basic tooling https://clojars.org/org.roman01la/scrum.devtools

It provides console logger and time-traveling UI with state diffs and current state visualization.

Add to project dependencies: [org.roman01la/scrum.devtools "0.1.0-SNAPSHOT"]

In your code, where you create state atom, do the following to setup devtools:

Require [scrum.devtools.logger :as logger] and [scrum.devtools.ui :as dui]

;; this is your app state
(def state (atom {}))

(when ^boolean goog.DEBUG ;; <= only in dev mode
  (logger/attach! state) ;; <= setup logger
  (dui/mount! state (dom/getElement "debug"))) ;; <= mount devtools UI into the DOM

;; setup reconciler, etc.
;; ...

from citrus.

escherize avatar escherize commented on September 25, 2024

The repo your clojars link points to is gone.

Is the scrum.devtools repo available elsewhere?

from citrus.

roman01la avatar roman01la commented on September 25, 2024

@escherize no, it's not public. TBH there's nothing super exciting, you can easily hook into atom state and log state changes :)

from citrus.

Related Issues (20)

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.