Custom tree nodes not rendered on first view

I’m working on some back office extensions - one is adding a new section, the other adding a new tree to the users section. Both are working fine - the tree/section is added with the correct nodes etc. Routing is working fine - I see the correct view for each node.

The issue I’m having is that on the first visit to either the custom section or tree, the nodes are not rendered - I get [sectionname] and nothing else.

Eg

  • Click custom section icon in the tray
  • View loads, but not the tree
  • Click icon again, view and tree load

It’s a new issue, it wasn’t happening until I added the tree to the users section - I’ve previously had the custom section working correctly.

Any ideas what might be causing this issue?


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/70383-custom-tree-nodes-not-rendered-on-first-view