Giter Site home page Giter Site logo

Comments (6)

borkdude avatar borkdude commented on May 7, 2024

I believe you can just execute arbitrary side effects before returning renderable stuff:

(defn my-component []
  (trigger-bomb!)
  [:h1 "Hello!"])

from reagent.

ul avatar ul commented on May 7, 2024

Thank you for fast reply! M. b. I formulated my question in wrong way. I need to do smth. after DOM has been updated. Ouch, it's more React than Reagent question, will google this right now.

from reagent.

borkdude avatar borkdude commented on May 7, 2024

You might want to try to post here https://github.com/reagent-project/reagent-core instead of here, because that is the place future development will continue.

from reagent.

ul avatar ul commented on May 7, 2024

I believe that everybody from reagent-project is watching this repo, but I will follow your advice and forward further questions to new repo! Thank you again!

from reagent.

ul avatar ul commented on May 7, 2024

Pete Hunt pointed out this interesting place https://github.com/facebook/react/blob/5d3b12bb3bd6a092cf00ede07b8255a8399c2e58/src/browser/ui/ReactDefaultInjection.js#L102 where handler could be attached, but it is not exposed by React API.

from reagent.

ul avatar ul commented on May 7, 2024

Just for the reference, React v0.12 has React.addons.batchedUpdates as part of public API. If I didn't miss something this is that allows to callback on update.
http://facebook.github.io/react/blog/2014/10/28/react-v0.12.html

from reagent.

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.