Skip to content

Possibility to dynamically chose destination #37

@mfrachet

Description

@mfrachet

I can't make the following stuff to work, and I don't even know if it's possible :

// Somewhere
<GatewayDest name="global" component={View} />

// Somewhere else
<GatewayDest name={targetId} component={View} />
<Gateway into={condition ? 'global': targetId}>
  <Text>Hi</Text>
</Gateway>

It seems that it's not possible to determine dynamically a portal destination.

See snack on here

Is this planned or possible in another way ?

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