Using with Hooks instead of Classes
brucedk opened this issue · 4 comments
brucedk commented
sorry if I'm asking anything stupid, but can we use Hooks api to create the graphics? I'm trying to do that, but it seems that the props from update function aren't coming
tobiasandersen commented
Which version of caspar-graphics
are you running? If you use the v2 branch (they're published on npm with the next
tag) you can use hooks.
brucedk commented
I'm using v2 branch (1.0.0-next.9.2
), but when I try to call the props, it aways return undefined
to me
tobiasandersen commented
Could you share an example where it's not working?
brucedk commented
@tobiasandersen sorry to not give more info, I just see the examples that you put inside this project and notice the mistakes that I had made.
Thanks again