Fork me on GitHub
#reagent
<
2016-05-25
>
Petrus Theron12:05:00

Is there something like react-refetch for ClojureScript, where you can declaratively specify named dependencies which need to trigger GET requests for your components? https://github.com/heroku/react-refetch

lewix13:05:05

petrus: what are the advantages of react refresh

Petrus Theron13:05:59

Keeping all your component’s data dependencies in one place - the component. At the moment I am triggering the fetch of data dependencies at the routing level and subscribing to fetched data with re-frame subscriptions. Om Next has a parser thing for this, but I’m not using Om

tom20:05:46

With reagent/create-class to create a component, and then using the component as a child to a parent component written in JSX, is there a way to pick up updated state from the parent component with the lifecycle methods?

tom21:05:36

Looks like componentwillreceiveprops will work^