-
I am working on trying to render a custom GNode ( As far as how I'm producing the nodes goes, I'm using a custom builder that extends
As you can see, Here is the process through which they are built:
I have no issues rendering
It seems to be stuck on the header comps as best as I can determine, and I'm wondering if this is an issue where the depth of the nesting is causing the problem. Is there any way I can resolve this issue? Is this a bug within GLSP, or just something that isn't possible at this time? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@tortmayr is there any chance you might know anything about this? It isn't entirely clear what I'm doing wrong, honestly. |
Beta Was this translation helpful? Give feedback.
I'm pretty sure that the
childNodes
property of theParentNode
causes the issue.This causes circular reference that
JSON.stringify
cannot resolve.Is there a particular reason why you opted for a new
childNodes
property instead of using thechildren
property which eachGModelElement
has by default?Before sending the model to the client we use the GModelSerializer to transform the current gmodel into a serializable format. This serializer can handle the default
parent
-children
properties of the GModel and resolves the circular references.If you absolutely need dedicated
childNodes
properties you probably would have to customize/rebind theGModelSerializer
and potentially also need so…