I feel like i'm maybe missing something, but is it critical for your approach to use useEffect and the fetch call in the Banner EditComponent function?
I didn't understand why we were doing this so I just changed it to use setAttributes() and it seems to work the same.
I feel like i'm maybe missing something, but is it critical for your approach to use useEffect and the fetch call in the Banner EditComponent function?
I didn't understand why we were doing this so I just changed it to use setAttributes() and it seems to work the same.
our-blocks/banner.js