block-developer-cookbook icon indicating copy to clipboard operation
block-developer-cookbook copied to clipboard

Block Hooks examples

Open ryanwelcher opened this issue 2 years ago • 1 comments

https://make.wordpress.org/core/2023/09/06/whats-new-in-gutenberg-16-6-06-september/

ryanwelcher avatar Sep 14 '23 14:09 ryanwelcher

Heya @ryanwelcher: Can you do a dive into Block Hooks this week?

I've been trying to build a timer functionality that could report to say, FreshBooks for time accounting. It appears you can manage events which is what I need to stop and start the timer. Been running into a lot of trouble trying to use conditional logic for this functionality and not use effect. Mainly with the component re-rendering and making the timer jump up.

This could be a cool use case!

https://developer.wordpress.org/block-editor/reference-guides/packages/packages-hooks/

Cheers/Seth

flexseth avatar Oct 30 '23 16:10 flexseth