Web-component Block Preview doesn't render straigh...
# help-with-umbraco
a
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? https://cdn.discordapp.com/attachments/1334469990920884285/1334469991692763137/block-preview.gif?ex=679ca587&is=679b5407&hm=c2f11eb542c2cc7e3c90cf185e44179257804d5993709d54f6576f8d603a84ae&
@rickbutterfield did you ever run into this problem while developing your BlockPreview package?
r
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?
@Andrew McKaskill I've just remembered, I fixed this for Block List in v15! https://github.com/umbraco/Umbraco-CMS/commit/3e7d6341e9c6c7ca71dc9b3e8ddaf89f394d9576
It didn't get backported to v14
a
Ah ha! Yeah, I thought it looked like a race condition.
On 14.3.1 at the moment locally.
r
Looks like you'd have to upgrade to v15 or be okay with it sometimes working, sometimes not unfortunately
5 Views