Skip to content

Using a tunnel right away?Β #14

@badtant

Description

@badtant

So I have the code below.
SomeComponentThatRendersToTunnel will try to put something inside footer-tunnel but it wont show on first render. My guess is that it's because it's below what will try to put something inside it. If I move the tunnel above the component it does render.

Is this a bug or expected? Is there a way to get around it?

<TunnelProvider>
                <>
                        <SomeComponentThatRendersToTunnel />
                        <div className={styles.flexFooter}>
                            <TunnelPlaceholder id="footer-tunnel" />
                        </div>
                </>
</TunnelProvider>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions