Skip to content

v2 Diagram error when not inside <Stack /> #2036

@atanasster

Description

@atanasster

If <Diagram /> is not inside a <Stack /> results in a maximum update depth exceeded error
To reproduce, remove the <Stack /> from the code sandbox sample:

<SandboxComponent>
          <Box>
            <Box direction='row'>
              {[1, 2].map(id => (
                <Node key={id} id={id} />
              ))}
            </Box>
            <Box direction='row'>
              {[3, 4].map(id => (
                <Node key={id} id={id} background='neutral-2' />
              ))}
            </Box>
          </Box>
          <Diagram
            connections={[
              connection('1', '4', { color: 'accent-2' }),
            ]}
          />
        
      </SandboxComponent>

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleNeeds to be re-evaluated to remain current

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions