Skip to content

Managing Nested Array of Objects #531

@SemAiSoft

Description

@SemAiSoft

I'm a newbie to the world of state mangmt libs, Please, how do I find, remove, and patch state of any the 'children' fully or partially, in a non-anti-pattern way.
For example,

{
     id: '0',
     children: [
       {
         id: '1',
         children: [
           { id: '3', children: [] },
           { 
               id: '4',
               children: [
                   {
                       id: '7',
                       children: [
                           {
                               id: '8'
                           }
                       ]
                   }
               ] 
           },
         ],
       },
       {
         id: '2',
         children: [
           { id: '5', children: [] },
           { id: '6', children: [] },
         ],
       },
     ],
   };

THANKS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions