Fork me on GitHub
#reagent
<
2019-05-14
>
Vesa Norilo12:05:41

Hi guys! Loving reagent here! I needed access to getSnapShotBeforeUpdate, so I made a small change: https://github.com/vnorilo/reagent/commit/a72fb69e4e802c6af6af280634ed41820ef7fd90

Vesa Norilo12:05:19

I appreciate any feedback on if that’s correct / makes sense!

Vesa Norilo12:05:04

happy to make a pull request if this makes sense :)

juhoteperi17:05:45

At a quick glance I think this makes sense, so yeah, make a PR

Vesa Norilo18:05:36

thanks! done.

coby23:05:42

I'm trying to do something similar to this example to control focus on a specific state change - is there an example about how to use refs or something equivalent in Reagent? https://reactjs.org/docs/refs-and-the-dom.html#adding-a-ref-to-a-dom-element

lilactown23:05:31

you can use callback refs and swap an atom

coby23:05:32

sweet, I was hoping it would be something simple like that. Thanks!