Fork me on GitHub
Vesa Norilo12:05:41

Hi guys! Loving reagent here! I needed access to getSnapShotBeforeUpdate, so I made a small change:

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 :)


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

Vesa Norilo18:05:36

thanks! done.


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?


you can use callback refs and swap an atom


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