registry.registerVanilla() with parsys not working
Firstly thanks for the great work with aem-react.
When I try to use the Panel component on any page (e.g. overview) and add any component (e.g. text) into it, it initially shows after adding, but when reloading the page it disapears.
from looking at your code:
registry.registerVanilla({component: Panel, parsys: {path: "content"}, depth: 2});
I think the expected behaviour would be a parsys node in the Panel node that is called 'conent'. Instead, in crx, I see the added 'text' component directly under the panel node, that then does not render.
If I add a parsys node into the Panel node and move the text in there, I do see the text rednered. Interestingly, in edit-mode, I still don't see the parsys (no additional 'Drag components here'), which might be fine though.
AccordionElement (which also is a continer component similar to Panel), which is a ResourceComponent registered with registry.register() works fine. Here, when adding a component to the accordion element, a subnode called 'togglepar' of type parsys is added and child node is added to this 'togglepar'.
You need to get the latest version of aem-react-js or leave parsys.path empty (see bug fix here https://github.com/sinnerschrader/aem-react-js/commit/9b4e86c6bf1e947f2162ebf7466a55000eacf712)
Thanks for the reply, I'm linking against the newest version of aem-react-js (which is 0.4.2, right?). The workaround with leaving parsys.path empty works though thanks. In order to not have others walk into the same issue you might eighter want to update the aem-react-js dependency to a newer version once it exists and/or also make parsys.path empty in this repo.
Thanks a lot!
please test 0.4.3 version.