#Web-component Block Preview doesn't render straight away (v14)

1 messages · Page 1 of 1 (latest)

honest drum
#

Has anyone experienced this?

I have made a web-component to act as a block preview for blocks in my v14 block list. I've got it registered correctly using the umbraco-package.json, but when the edit page loads the previews don't load automatically.
They only load when you:

  • add a new block of that type
  • drag existing blocks of that type around in the list

Can anyone point me to what I'm missing?

honest drum
#

@silk elm did you ever run into this problem while developing your BlockPreview package?

silk elm
#

I do remember there being some sort of race condition early on in v14, where the filter method that checks for anything on that extension point doesn't always load correctly

#

What version of 14 are you on?

#

It didn't get backported to v14

honest drum
#

Ah ha! Yeah, I thought it looked like a race condition.

#

On 14.3.1 at the moment locally.