Skip to content

Prevent infinite recursion when Groot traverses complex data model? #83

Description

@dhearst

Hi,

We're trying to use Groot to serialize and deserialize our main data object class. It is a complex managed object with many relationships. In turn, many of its related objects are related to each other and to other nested objects. That means that there are 10-15 entities that are intertwined with forward and reverse relationships.

I've started testing Groot with our real-world data and immediately encountered a crash because Groot was recursing infinitely amidst our intertwined relationships. I have been able to prevent that by removing the JSONKeyPath user info on a few reverse relationships. This makes me wonder if I'm missing something in the way we've adopted Groot. I do have identityAttributes on all of our entities (applied to the entities themselves...is that correct?) Is there something else needed to convince Groot to stop parsing the object hierarchy when it reaches objects that were already parsed previously?

Thanks for any suggestions you can give me...Groot is amazing and we're really hoping to get it fully functional in our app. :)

David

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions