[SOLVED] Nodetype does not reload, when using reloadIfChanged

Hi, i have a nodetype, that shows a SVG that is selectable from a dropdown select box, I used the reloadIfChanged property, but the item will not be refreshed until i reload the page manually.

I already tried “reloadPageIfChanged”, but I get the error “Unexpected token < in JSON at position 0” while clicking the apply button, and nothing changes even when i reload.

any idea what could be the problem?
here is my yaml and fusion code:

properties:
    'name':
      type: string
      ui:
        label: 'Icon'
        reloadIfChanged: true
        inspector:
          group: 'icon'
          editor: 'Neos.Neos/Inspector/Editors/SelectBoxEditor'
prototype(Vendor.Packages:Component.Atom.Icon) < prototype(Neos.Fusion:Component) {
    name = ''
    title = ''
    description = ''
    arialabel = ''
    spritePath = ''


    renderer = afx`
    <svg
      aria-labeledby={props.arialabel}
      aria-labeledby.@if.isAriaLabeledBy={props.arialabel}
      role="img">
      <title id={ "icon-title--"  + props.name }>{ props.title }</title>
      <desc @if.hasDescription={ props.description } id={ "icon-desc--" + props.name }>{ props.description }</desc>
      <use xlink:href={ props.spritePath  + "#" +  props.name } />
    </svg>

    `
}

prototype(Vendor.Packages:Content.Icon) < prototype(Neos.Neos:ContentComponent) {
    renderer = Vendor.Packages:Component.Atom.Icon {
        title = ${ q(node).property('title')}

        description = ${ q(node).property('description')}

        arialabel = ${ q(node).property('arialabel')}

        name = ${ q(node).property('name') }

        spritePath = Neos.Fusion:ResourceUri {
            path = 'resource://Vendor.Packages/Public/Assets/Svg/sprite.svg'
        }

    }
}

Sounds like this: https://github.com/neos/neos-ui/issues/1849

Check for updates.

1 Like

thanks, but it did not help me, still have the same problem.

upgrading to a newer version of Neos UI (1.2) solved the problem.