Problem

After enabling nuxt-preview provider via lupus-decoupled, the preview in manage custom-ce results in endless/instant reloads in the browser - rendering the form unusable.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fago created an issue. See original summary.

fago’s picture

After some debugging, I figured the problem is actually on the nuxt side of things.
This commit fixed it.

However, after fixing it I found another issue with the component-preview. It does not respect the nuxtjs-drupal-ce component preview, since it's simply using h() and not renderCustomElements() helper.

fago’s picture

Another issue is handling slots in previews.

Current approach for the nuxt-preview is only working well with canvas, not with regular components. Each slot gets rendered via a preview again, what is not working out in this case.

fago’s picture

> Each slot gets rendered via a preview again, what is not working out in this case.

Actually, it's working out. It's just missing the tag-prefix, what cause issues.

fago’s picture

Status: Active » Fixed

The MR successfully addresses the remaining issues.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • fago committed 503c3646 on 3.x
    [#3554547] fix: fix nuxt-previews to use prefixed tags and improve error...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.