Giter VIP home page Giter VIP logo

Comments (10)

roman01la avatar roman01la commented on June 8, 2024 1

Yeah. Going to talk to Nikita about this.

from citrus.

DjebbZ avatar DjebbZ commented on June 8, 2024

As a temporary workaround I'll do the following. What do you think ?

(let [rec   (scrum/reconciler {:state     (atom {})
                               :resolvers {[:a] (constantly :a)
                                           [:b] (constantly :b)}})
      sub-a (fn [reconciler]
              (scrum/subscription reconciler [:a]))
      sub-b (fn [reconciler]
              (scrum/subscription reconciler [:b]))
      derived (fn [reconciler]
                (let [a @(sub-a reconciler)
                      b @(sub-b reconciler)]
                  [a b]))]
  (derived rec))

The example is dumb, but I hope you get the point.

from citrus.

DjebbZ avatar DjebbZ commented on June 8, 2024

FYI, not working, since I'm using it as a subscription (with (rum/react XXX))... I think I'm blocked...

from citrus.

roman01la avatar roman01la commented on June 8, 2024

Hey. You are right. I'm going to update the code later today. Which version of Scrum is it?

from citrus.

DjebbZ avatar DjebbZ commented on June 8, 2024

2.1.0-SNAPSHOT. Sorry I should have mentionned it.

Going to upgrade to 2.2.0 to ease the transition to the bugfix version.

from citrus.

roman01la avatar roman01la commented on June 8, 2024

No worries, I'll update both.

from citrus.

roman01la avatar roman01la commented on June 8, 2024

Actually I think that's inconsistency in Rum. When used in Clojure derived-atom shouldn't add watchers.

from citrus.

DjebbZ avatar DjebbZ commented on June 8, 2024

Indeed, I think you're right : you render in one pass server-side, watches are useless. At least so it seems. Are you opening an issue in Rum ?

from citrus.

roman01la avatar roman01la commented on June 8, 2024

Fixed in 86d9adf for 2.1.0 and 2.2.9 in master. Please check if it works for you.

from citrus.

DjebbZ avatar DjebbZ commented on June 8, 2024

Looks like it works fine in 2.1.0. Thanks a lot !

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.