plone / plone/mockup

pat-contentbrowser: SelectedItem customization broken due to lazy loading patterns?

Open
#1,627 1 comment 0 reactions 1 assignee View on GitHub

@MrTango is already working on this.

Since Aug 10, 2026.

01 type: bug
Dominant language
JavaScript
Stars
57
Forks
103
Avg merge
10h 25m
Merged PRs (30d)
18

Description

I just tried a customization based on https://github.com/collective/blicca.staticresourceoverride/
But with the latest master branch the code in
https://github.com/plone/mockup/blob/bfb9d269e652bac26a70d156e502b1dc64e09d96/src/pat/contentbrowser/src/SelectedItems.svelte#L36

runs before

https://github.com/collective/blicca.staticresourceoverride/blob/e3a6b22436a5a4f142d4cbfbb8ee44e556e660b7/resources/overrides.js#L43

So that the customization is not picked up.

I tested this by placing a debugger; statement right before the referenced lines - SelectedItems.svelte comes before overrides.js

With Mockup 5.6.6 this does not happen, overrides.js is executed before SelectedItems.svelte and the customization does work.

I guess this has something to do with the recent lazy pattern loading approach.

EDIT: I'm also having troubles customizing with Mockup 5.7.0-alpha.0. So maybe not a lazy pattern loading problem?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.